We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2fabdb commit ecccf48Copy full SHA for ecccf48
1 file changed
doc/api/v8.md
@@ -627,6 +627,7 @@ stopHookSet();
627
```
628
629
### `promiseHooks.onInit(init)`
630
+
631
<!-- YAML
632
added: REPLACEME
633
-->
@@ -650,6 +651,7 @@ const stop = promiseHooks.onInit((promise, parent) => {});
650
651
652
653
### `promiseHooks.onSettled(settled)`
654
655
656
657
@@ -674,6 +676,7 @@ const stop = promiseHooks.onSettled((promise) => {});
674
676
675
677
678
### `promiseHooks.onBefore(before)`
679
680
681
682
@@ -698,6 +701,7 @@ const stop = promiseHooks.onBefore((promise) => {});
698
701
699
702
700
703
### `promiseHooks.onAfter(after)`
704
705
706
707
@@ -722,6 +726,7 @@ const stop = promiseHooks.onAfter((promise) => {});
722
726
723
727
724
728
### `promiseHooks.createHook(callbacks)`
729
725
730
731
732
@@ -778,7 +783,7 @@ not necessarily ever even be garbage collected.
778
783
779
784
Because promises are asynchronous resources whose lifecycle is tracked
780
785
via the promise hooks mechanism, the `init()`, `before()`, `after()`, and
781
-`settled()` callbacks *must not* be async functions as they create more
786
+`settled()` callbacks _must not_ be async functions as they create more
782
787
promises which would produce an infinite loop.
788
789
While this API is used to feed promise events into [`async_hooks`][], the
0 commit comments