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
.constructor
property 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
function
keyword - deffereds will receive a lot less hate once we have ES6
Summary
I'm very much in favour of this proposal
Metadata
Metadata
Assignees
Labels
No labels
Activity