Skip to content

Commit 8b2eefd

Browse files
Stephen Belangerevanlucas
Stephen Belanger
authored andcommitted
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: #17813 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ali Ijaz Sheikh <[email protected]>
1 parent e7e8524 commit 8b2eefd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/api/async_hooks.md

+8
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,14 @@ init for PROMISE with id 6, trigger id: 5 # the Promise returned by then()
470470

471471
#### `async_hooks.executionAsyncId()`
472472

473+
<!-- YAML
474+
added: v8.1.0
475+
changes:
476+
- version: v8.2.0
477+
pr-url: https://github.com/nodejs/node/pull/13490
478+
description: Renamed from currentId
479+
-->
480+
473481
* Returns: {number} The `asyncId` of the current execution context. Useful to
474482
track when something calls.
475483

0 commit comments

Comments
 (0)