async_hooks: remove deprecated example
PR-URL: https://github.com/nodejs/node/pull/20998 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
aa08cf1e7a
commit
e5e81f7c19
@ -615,14 +615,6 @@ asyncResource.asyncId();
|
|||||||
|
|
||||||
// Return the trigger ID for the AsyncResource instance.
|
// Return the trigger ID for the AsyncResource instance.
|
||||||
asyncResource.triggerAsyncId();
|
asyncResource.triggerAsyncId();
|
||||||
|
|
||||||
// Call AsyncHooks before callbacks.
|
|
||||||
// Deprecated: Use asyncResource.runInAsyncScope instead.
|
|
||||||
asyncResource.emitBefore();
|
|
||||||
|
|
||||||
// Call AsyncHooks after callbacks.
|
|
||||||
// Deprecated: Use asyncResource.runInAsyncScope instead.
|
|
||||||
asyncResource.emitAfter();
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### new AsyncResource(type[, options])
|
#### new AsyncResource(type[, options])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user