Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upNewPromiseCapability section has to be clear about GetCapabilitiesExecutor call #355
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
zenparsing
Feb 4, 2016
Contributor
The purpose of GetCapabilitiesExecutor is to extract the resolve and reject functions from constructing a new promise and pack them into a PromiseCapability record. Think of it like this:
function makeGetCapabilitiesExecutor() {
return function F(resolve, reject) {
F._Capabilities.resolve = resolve;
F._Capabilities.reject = reject;
};
}|
The purpose of GetCapabilitiesExecutor is to extract the resolve and reject functions from constructing a new promise and pack them into a PromiseCapability record. Think of it like this: function makeGetCapabilitiesExecutor() {
return function F(resolve, reject) {
F._Capabilities.resolve = resolve;
F._Capabilities.reject = reject;
};
} |
bterlson
closed this
Feb 5, 2016
thefourtheye
referenced this issue
Feb 14, 2016
Closed
NewPromiseCapability & GetCapabilitiesExecutor Functions #392
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thefourtheye commentedFeb 4, 2016
As it is,
NewPromiseCapabilitysection saysbut the
GetCapabilitiesExecutor Functionsis defined asSo, it is not very clear what the functions passed to
GetCapabilitiesExecutorfromNewPromiseCapability.Can someone please explain?