We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80f6960 commit 2a586e3Copy full SHA for 2a586e3
README.md
@@ -70,8 +70,10 @@ now *getAsync* is a promisified version of *client.get*:
70
return getAsync('foo').then(function(res) {
71
console.log(res); // => 'bar'
72
});
73
+```
74
-// or using [async await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function)
75
+or using [async await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function):
76
+```js
77
async myFunc() {
78
const res = await getAsync('foo');
79
console.log(res);
0 commit comments