|
|
|
|
|
by xtrumanx
4045 days ago
|
|
What's so bad about using deferred? In one case I call the resolve or reject parameters and in the other I call a resolve or reject properties on the deferred object. Not much of a difference to me. I learned about deferred a few years ago and kinda stuck with it. It's all over my code base and he didn't really justify why I should go about changing it. The only thing I can reason I can think of is using his recommendation follows the ES6 spec which doesn't matter to me that much for now. |
|
One place this is mentioned is: https://github.com/petkaantonov/bluebird/wiki/Promise-anti-p...