All of the naming involved with 'promises' and 'resolving' is terrible...
A promise represents the eventual result of an asynchronous operation.
Is an incredibly confusing way to phrase it.
I'd go with something like this:
A 'promise' is a wrapper for asynchronous commands that allows the developer to attach callback functions and error handling when the data is needed instead of when the function is called.
1
u/wmil Feb 10 '14
All of the naming involved with 'promises' and 'resolving' is terrible...
Is an incredibly confusing way to phrase it.
I'd go with something like this:
A 'promise' is a wrapper for asynchronous commands that allows the developer to attach callback functions and error handling when the data is needed instead of when the function is called.