src: deprecate AddPromiseHook() · nodejs/node@d0801a1 · GitHub
Skip to content

Commit d0801a1

Browse files
addaleaxtargos
authored andcommitted
src: deprecate AddPromiseHook()
This API was added to fill an use case that is served by `async_hooks`, since that has `Promise` support. Deprecate this, as the underlying `Isolate::SetPromiseHook()` may be removed in its current form in the future. Refs: https://docs.google.com/document/d/1g8OrG5lMIUhRn1zbkutgY83MiTSMx-0NHDs8Bf-nXxM/ PR-URL: #26529 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent a13f0a6 commit d0801a1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/node.h

Lines changed: 4 additions & 3 deletions

0 commit comments

Comments
 (0)