promisified function does not trigger setScheduler #1023
bluebird 3.3.3, Chrome 48, angular 1.5.0
Example in this fiddle: https://jsfiddle.net/Lmac0kLw/5/
When using promisify on an async function, it appears that
There are a few ways to remedy this:
As I understand it, there should be no difference between the promisified call vs the normal promise. Is this an actual bug? Or am I not understanding something?
The text was updated successfully, but these errors were encountered:
Automatic promisification only applies to functions with the node
As for what Petka is saying - bluebird will eagerly avoid defering actions when it can prove that the action has already been deferred by the platform. That is - in this case it can tell the action inside the promisified callback has executed asynchronously so it does not need to defer it further.
This should not be an issue with Angular since automatic promisification is irrelevant to it anyway.