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 <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
  • Loading branch information
Stephen Belanger authored and MylesBorins committed Feb 27, 2018
1 parent 896aa77 commit 8391523
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 8391523

Please sign in to comment.