You've already forked node-redis
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user