when/defer-style promises for JavaScript (CommonJS/Promises/B)
If a function cannot return a value or throw an exception without blocking, it can return a promise instead. A promise is an object that represents the return value or the thrown exception that the function may eventually provide. A promise can also be used as a proxy for a remote object to overcome latency.
The Q module can be loaded as:
• A tag (creating a Q global variable): ~2.5 KB minified and gzipped.
• A Node.js and CommonJS module, available in npm as the q package
• An AMD module
• A component as microjs/q
• Using bower as q#1.0.1
• Using NuGet as Q
Q can exchange promises with jQuery, Dojo, When.js, WinJS, and more.
Commercial Use
Modify
Distribute
Sub-License
Private Use
Hold Liable
Include Copyright
Include License
These details are provided for information only. No information here is legal advice and should not be used as such.
There are no reported vulnerabilities
30 Day SummaryMar 26 2024 — Apr 25 2024
|
12 Month SummaryApr 25 2023 — Apr 25 2024
|