Cheatography
https://cheatography.com
API reference for Q Node.js Module
Q Core Promise Methods
then(onFulfilled, onRejected, onProgress) |
done(onFullfilled, onRejected, onProgress) |
catch(onRejected) |
finally(cb) |
progress(onProgress) |
Q Deferred Properties
Q.defer() |
promise |
resolve(value) |
reject(reason) |
notify(value) |
makeNodeResolver() |
Q(value) also creates a promise.
|
|
Q Object Methods
get(property) |
invoke(methodName, ...args) |
past(methodName, args) |
keys() |
Q Function Methods
fcall(...args) |
fapply(args) |
|
|
Q Array Methods
all() |
allSettled() |
spread(onFulfilled, onRejected) |
Q Promise Utility Methods
thenResolve(value) |
thenReject(error) |
delay(ms) |
timeout(ms, message) |
|
Created By
Metadata
Comments
Havvy 14:25 10 Apr 14
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