Skip to content

Commit

Permalink
doc: add change info for async_hooks.executionAsyncId()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Stephen Belanger authored and evanlucas committed Jan 30, 2018
1 parent 4b918d7 commit b553daa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/api/async_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,14 @@ init for PROMISE with id 6, trigger id: 5 # the Promise returned by then()

#### `async_hooks.executionAsyncId()`

<!-- YAML
added: v8.1.0
changes:
- version: v8.2.0
pr-url: https://github.com/nodejs/node/pull/13490
description: Renamed from currentId
-->

* Returns: {number} The `asyncId` of the current execution context. Useful to
track when something calls.

Expand Down

0 comments on commit b553daa

Please sign in to comment.