From a6986fe8b6f704cb216511e8b22e6ab639647141 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 Backport-PR-URL: https://github.com/nodejs/node/pull/21172 --- 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 b97bc73304a4d7..3a6a44d0f71a0d 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])