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 4285b57 commit 4274542Copy full SHA for 4274542
src/node.h
@@ -661,9 +661,10 @@ struct async_context {
661
662
/* Registers an additional v8::PromiseHook wrapper. This API exists because V8
663
* itself supports only a single PromiseHook. */
664
-NODE_EXTERN void AddPromiseHook(v8::Isolate* isolate,
665
- promise_hook_func fn,
666
- void* arg);
+NODE_DEPRECATED("Use async_hooks directly instead",
+ NODE_EXTERN void AddPromiseHook(v8::Isolate* isolate,
+ promise_hook_func fn,
667
+ void* arg));
668
669
/* This is a lot like node::AtExit, except that the hooks added via this
670
* function are run before the AtExit ones and will always be registered
0 commit comments