Closed eide closed 7 years ago
thanks for spotting this! Couple of things/questions:
With "optionally passing a Promise impl" do you mean that the "Promise impl" argument should have a default value? Ie: constructor (PromiseImpl = Promise)
?
I can do that, but I think having a default value makes it easier to forget to specify it when you need to :)
Pretty much (although I have irrational dislike for default args in function sigs..) , although I do see you point and it's not as if this is meant to be some general purpose used by the world impl. I'll merge this and then if it's still bothering me in a few months do something about it :-)
marged and shipped and live as v3.0.1!
Deferred always uses native Promises, even when a custom Promise library is supplied in the configuration.
This means the promise returned from acquire() is always native.