Cheatography
https://cheatography.com
API reference for Q Node.js Module
Q Core Promise Methodsthen(onFulfilled, onRejected, onProgress) | done(onFullfilled, onRejected, onProgress) | catch(onRejected) | finally(cb) | progress(onProgress) |
Q Deferred PropertiesQ.defer() | promise | resolve(value) | reject(reason) | notify(value) | makeNodeResolver() |
Q(value) also creates a promise.
| | Q Object Methodsget(property) | invoke(methodName, ...args) | past(methodName, args) | keys() |
Q Function Methodsfcall(...args) | fapply(args) |
| | Q Array Methodsall() | allSettled() | spread(onFulfilled, onRejected) |
Q Promise Utility MethodsthenResolve(value) | thenReject(error) | delay(ms) | timeout(ms, message) |
|
Help Us Go Positive!
We offset our carbon usage with Ecologi. Click the link below to help us!
Created By
Metadata
Comments
I'm not using Q anymore, but if anybody wants this updated, or if I'm missing a section you'd like added, leave a comment or shoot me an email (ryan.havvy@gmail.com), and I'll update this. Please be somewhat specific on what needs to be updated though.
Add a Comment
Related Cheat Sheets
More Cheat Sheets by Havvy