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:
Stephen Belanger 2017-12-21 15:10:24 -08:00 committed by Anna Henningsen
parent c1234673bb
commit dadf28271c
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9

View File

@ -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.