Good job!,
Keep in mind that you can also use a promesify-type library to transform all the node standard async functions to return promises.
It does exactly the same you end up writing as
return new Promise(function(resolve, reject) {
...
});
Hope it helps!
Oh interesting, thanks for letting me know! I’ll look into that type of library 🙂
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Sorry the typo, it's promisify:
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Awesome, thanks for the links!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit