mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
doc: fix async_hooks example in api docs
PR-URL: https://github.com/nodejs/node/pull/41609 Reviewed-By: Qingyu Deng <i@ayase-lab.com> Reviewed-By: Mestery <mestery@protonmail.com>
This commit is contained in:
1 parent
10b043287c
commit
ef35175527
1 file changed
+1
-1
@@ -816,7 +816,7 @@ Promise.resolve(1729).then(() => {
|
||||
```
|
||||
|
||||
```cjs
|
||||
const { createHook, exectionAsyncId, triggerAsyncId } = require('async_hooks');
|
||||
const { createHook, executionAsyncId, triggerAsyncId } = require('async_hooks');
|
||||
|
||||
createHook({ init() {} }).enable(); // forces PromiseHooks to be enabled.
|
||||
Promise.resolve(1729).then(() => {
|
||||
|
||||
Reference in new issue
Block a user