2 ms·
I actually think using your promise library's promisify methods are best practice. Reason: there are multiple promise implementations with different methods ava
by nicoburns 10y ago
I actually think using your promise library's promisify methods are best practice. Reason: there are multiple promise implementations with different methods available (e.g. the Bluebird library extends the promise/A standard significantly), and thus if libraries included promises, a conversion from whichever promise library the library was using to the promise library which you are using would be necessary, and this would be considerably less efficient.