1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

comment with reference out of code block

This commit is contained in:
Liran
2017-11-08 10:52:53 +02:00
committed by Ruben Bridgewater
parent 80f6960fb5
commit 2a586e35b6

View File

@@ -70,8 +70,10 @@ now *getAsync* is a promisified version of *client.get*:
return getAsync('foo').then(function(res) {
console.log(res); // => 'bar'
});
```
// or using [async await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function)
or using [async await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function):
```js
async myFunc() {
const res = await getAsync('foo');
console.log(res);