smartq
dropin replacement for q
Availabililty
Status for master
Usage
Use TypeScript for best in class instellisense.
Note: smartq uses native ES6 promises smartq does not repeat any native functions, so for things like .all() simply use Promise.all()
// Deferred// -----------------------------------------------let myAsyncFunction = : Promise<string> let done = qdefer<string> // returns your typical Deferred object return donepromise let myAsyncFunction2 = async { let aString = await console // will log 'hi' to console} ; // Resolved and Rejected promises// ------------------------------------------------q q // Promisify (typed)// ------------------------------------------------ let { } let myPromisedFunction = q
For further information read the linked docs at the top of this README.
MIT licensed | © Lossless GmbH