diff options
author | Stephen Belanger <stephen.belanger@elastic.co> | 2017-12-21 15:10:24 -0800 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-01-18 22:36:58 +0100 |
commit | dadf28271c96f11aea77878a79263e2bfa4f8bf8 (patch) | |
tree | 220b4f3976d5b1273ce8802b44f308c90e255ee3 /doc/api/async_hooks.md | |
parent | c1234673bbba1ac6c8425dffb2604ccf647bbfcf (diff) | |
download | android-node-v8-dadf28271c96f11aea77878a79263e2bfa4f8bf8.tar.gz android-node-v8-dadf28271c96f11aea77878a79263e2bfa4f8bf8.tar.bz2 android-node-v8-dadf28271c96f11aea77878a79263e2bfa4f8bf8.zip |
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>
Diffstat (limited to 'doc/api/async_hooks.md')
-rw-r--r-- | doc/api/async_hooks.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md index e8cb9344c4..fdc1158f22 100644 --- a/doc/api/async_hooks.md +++ b/doc/api/async_hooks.md @@ -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. |