Skip to content

Commit 735ef8b

Browse files
bnoordhuistargos
authored andcommitted
doc: async_hooks.createHook promiseResolve option
Document the `promiseResolve` option to `async_hooks.createHook()`. This seems to have been overlooked in commit b605b15 ("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: #29405 Reviewed-By: David Carlier <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent b30c40b commit 735ef8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/async_hooks.md

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ added: v8.1.0
8989
* `before` {Function} The [`before` callback][].
9090
* `after` {Function} The [`after` callback][].
9191
* `destroy` {Function} The [`destroy` callback][].
92+
* `promiseResolve` {Function} The [`promiseResolve` callback][].
9293
* Returns: {AsyncHook} Instance used for disabling and enabling hooks
9394

9495
Registers functions to be called for different lifetime events of each async
@@ -685,6 +686,7 @@ never be called.
685686
[`before` callback]: #async_hooks_before_asyncid
686687
[`destroy` callback]: #async_hooks_destroy_asyncid
687688
[`init` callback]: #async_hooks_init_asyncid_type_triggerasyncid_resource
689+
[`promiseResolve` callback]: #async_hooks_promiseresolve_asyncid
688690
[Hook Callbacks]: #async_hooks_hook_callbacks
689691
[PromiseHooks]: https://docs.google.com/document/d/1rda3yKGHimKIhg5YeoAmCOtyURgsbTH_qaYR79FELlk/edit
690692
[`Worker`]: worker_threads.html#worker_threads_class_worker

0 commit comments

Comments
 (0)