Skip to content

Commit 246e2f0

Browse files
committed
feat: async hooks
1 parent b72ea5a commit 246e2f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ console.log(contextA.get('xxx')); // undefined
4242

4343
### Complex
4444

45-
#### With [`async_hooks`](https://nodejs.org/api/async_hooks.html)
45+
#### By using [`async_hooks`](https://nodejs.org/api/async_hooks.html)
4646

4747
```ts
4848
const context = createSimpleContext();
@@ -76,7 +76,7 @@ const res = await Promise.all([
7676
console.log(res); // ['foo=tata', 'foo=bar', 'foo=toto']
7777
```
7878

79-
#### Without [`async_hooks`](https://nodejs.org/api/async_hooks.html)
79+
#### By using multiple contexts
8080

8181
Here, I define multiple contexts in the same file, like that:
8282

0 commit comments

Comments
 (0)