ServerJS/Promises
< ServerJS
Jump to navigation
Jump to search
Promises
Promises provide a well-defined interface for interacting with an object that represents the result of an action that is performed asynchronously, and may or may not be finished at any point in time. By utilizing a standard interface, different components can return promises for asynchronous actions and consumers can utilize the promises in a predictable manner. Promises can also provide the fundamental entity to be leveraged for more syntactically convenient language-level extensions that assist with asynchronicity.
Prior Art
- Dojo's Deferred A form of promises that was inherited from MochiKit and Twisted.
- ref_send. A promise manager.
Proposed API
Related Discussions
http://groups.google.com/group/serverjs/browse_thread/thread/e93f73ef97e88439/9cdb490abb8edfa6