-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async remote method always returns null #2
Comments
It turns out that returning a native promise from a remote method won't pass the Line 423 in e5f87df
My test above passes if I return a bluebird promise from the remote method. I wonder if it's worth updating the docs to specify that bluebird must be used? Or we could use something like https://github.com/sindresorhus/p-is-promise instead of |
Thank you for your nice report. I merged your PR. Yes. I also think that this project should remove bluebird as a polyfill of ES6 Promise... |
Thanks for this set of libraries! It has opened a new world of possibilities for me. |
I'm trying to follow the instructions in the README for defining a remote method that returns a promise, but my client code (in Emacs) only ever receives null after calling that method. And that null appears to be returned synchronously, before the async task in my remote method actually resolves a real value to return.
I created a failing test case for this issue here: madeleinedaly@525b722
The text was updated successfully, but these errors were encountered: