-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
We could have a promise(fn) method which returns a promise, and calls the function with the resolver for that promise.
Advantages
- discoverable via
.constructorproperty of a promise (see discovery of resolver #5) - supports prototypal inheritance (see Extended promise objects #6)
- consistent with other promise-creation
Disadvantages
- Increased nesting
- Extra
functionkeyword - deffereds will receive a lot less hate once we have ES6
Summary
I'm very much in favour of this proposal
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels