You are viewing a single comment's thread from:

RE: My First Steem.js Adventure, Part 2: Lessons From My Mentor About Promises

in #steemdev7 years ago

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!

Sort:  

Oh interesting, thanks for letting me know! I’ll look into that type of library 🙂

Sorry the typo, it's promisify:

Awesome, thanks for the links!

Coin Marketplace

STEEM 0.20
TRX 0.14
JST 0.030
BTC 68523.63
ETH 3260.51
USDT 1.00
SBD 2.66