We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a13f0a6 commit d0801a1Copy full SHA for d0801a1
src/node.h
@@ -597,9 +597,10 @@ struct async_context {
597
598
/* Registers an additional v8::PromiseHook wrapper. This API exists because V8
599
* itself supports only a single PromiseHook. */
600
-NODE_EXTERN void AddPromiseHook(v8::Isolate* isolate,
601
- promise_hook_func fn,
602
- void* arg);
+NODE_DEPRECATED("Use async_hooks directly instead",
+ NODE_EXTERN void AddPromiseHook(v8::Isolate* isolate,
+ promise_hook_func fn,
603
+ void* arg));
604
605
/* This is a lot like node::AtExit, except that the hooks added via this
606
* function are run before the AtExit ones and will always be registered
0 commit comments