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: nodejs#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 MayaLekova committed May 8, 2018
1 parent 81cd382 commit ed7d0db
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 ed7d0db

Please sign in to comment.