From e5e81f7c1937ca3ac684c2f9647092fc0c7ee36e Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Mon, 28 May 2018 11:24:31 +0200 Subject: [PATCH] async_hooks: remove deprecated example PR-URL: https://github.com/nodejs/node/pull/20998 Reviewed-By: Ruben Bridgewater Reviewed-By: Matteo Collina Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Trivikram Kamat Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell --- doc/api/async_hooks.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md index b97bc73304a..3a6a44d0f71 100644 --- a/doc/api/async_hooks.md +++ b/doc/api/async_hooks.md @@ -615,14 +615,6 @@ asyncResource.asyncId(); // Return the trigger ID for the AsyncResource instance. 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])