summaryrefslogtreecommitdiff
path: root/doc/api/async_hooks.md
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2019-09-02 10:31:27 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-09-06 06:05:58 +0200
commit9c57e4dedbe5e72a226180f1440cf2884e3cad5c (patch)
tree264211d692afd4d333b214899a2c02ecb353ee1c /doc/api/async_hooks.md
parent618630265451dedf0bfda832cd8094b60276769a (diff)
downloadnode-new-9c57e4dedbe5e72a226180f1440cf2884e3cad5c.tar.gz
doc: async_hooks.createHook promiseResolve option
Document the `promiseResolve` option to `async_hooks.createHook()`. This seems to have been overlooked in commit b605b15346 ("async_hooks: support promise resolve hook") from September 2017. It is documented elsewhere in the async_hooks API documentation, except where you actually pass it in. PR-URL: https://github.com/nodejs/node/pull/29405 Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/async_hooks.md')
-rw-r--r--doc/api/async_hooks.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md
index 487f3ac9c1..90ff343ae0 100644
--- a/doc/api/async_hooks.md
+++ b/doc/api/async_hooks.md
@@ -89,6 +89,7 @@ added: v8.1.0
* `before` {Function} The [`before` callback][].
* `after` {Function} The [`after` callback][].
* `destroy` {Function} The [`destroy` callback][].
+ * `promiseResolve` {Function} The [`promiseResolve` callback][].
* Returns: {AsyncHook} Instance used for disabling and enabling hooks
Registers functions to be called for different lifetime events of each async
@@ -685,6 +686,7 @@ never be called.
[`before` callback]: #async_hooks_before_asyncid
[`destroy` callback]: #async_hooks_destroy_asyncid
[`init` callback]: #async_hooks_init_asyncid_type_triggerasyncid_resource
+[`promiseResolve` callback]: #async_hooks_promiseresolve_asyncid
[Hook Callbacks]: #async_hooks_hook_callbacks
[PromiseHooks]: https://docs.google.com/document/d/1rda3yKGHimKIhg5YeoAmCOtyURgsbTH_qaYR79FELlk/edit
[`Worker`]: worker_threads.html#worker_threads_class_worker