Closed DrLightman closed 8 years ago
I'd suggest you have a read of some guides on promises if you're unsure how to use them. Jake Archibald has written one here that may be worth looking at: http://www.html5rocks.com/en/tutorials/es6/promises
Thanks for the link. Ignorance is an evli beast.
If you return a value, the next "then" is called with that value. However, if you return something promise-like, the next "then" waits on it, and is only called when that promise settles (succeeds/fails).
So basically without returning anything I'm returning the value "undefined", so my guess to check on (result !== undefined) was correct but driven only by poor experiments.
First of all thank you for this module.
Second, I'm newbie at node/promises.
Third, my question, I'm wondering if I'm doing this right:
Thank you