From ed7d0db72300efceb3b716a3e172315692118bcb Mon Sep 17 00:00:00 2001 From: Stephen Belanger Date: Thu, 21 Dec 2017 15:10:24 -0800 Subject: [PATCH] doc: add change info for async_hooks.executionAsyncId() Add meta information to async_hooks documentation informing that executionAsyncId was renamed from currentId at Node.js 8.2.0. PR-URL: https://github.com/nodejs/node/pull/17813 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Ali Ijaz Sheikh --- doc/api/async_hooks.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md index e8cb9344c4c123..fdc1158f22bc37 100644 --- a/doc/api/async_hooks.md +++ b/doc/api/async_hooks.md @@ -470,6 +470,14 @@ init for PROMISE with id 6, trigger id: 5 # the Promise returned by then() #### `async_hooks.executionAsyncId()` + + * Returns: {number} The `asyncId` of the current execution context. Useful to track when something calls.