You are viewing a single comment's thread from:

RE: STEEM.JS - NPM Package and some basic examples of it.

in #steemit7 years ago

For every API method a variant with the suffix Async exists, returning a Promise instead of expecting a callback function. This helps to write cleaner code à la

const content = await steem.api.getContentAsync(author, permlink);
Sort:  

Thanks you, and yeah totally true. Well was some fast examples, but yeah that's right, and i should apply it to myself too.

Thanks!

Coin Marketplace

STEEM 0.20
TRX 0.20
JST 0.034
BTC 89557.69
ETH 3064.76
USDT 1.00
SBD 2.96