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 <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
This commit is contained in:
parent
c1234673bb
commit
dadf28271c
@ -470,6 +470,14 @@ init for PROMISE with id 6, trigger id: 5 # the Promise returned by then()
|
|||||||
|
|
||||||
#### `async_hooks.executionAsyncId()`
|
#### `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
|
* Returns: {number} The `asyncId` of the current execution context. Useful to
|
||||||
track when something calls.
|
track when something calls.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user