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!