You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While it doesn't make any difference now. In the future PromiseHooks
could be refactored to provide an asyncId instead of the promise object.
That would make escape analysis on promises possible.
Escape analysis on promises could lead to a more efficient destroy hook,
if provide by PromiseHooks as well. But at the very least would allow
the destroy hook to be emitted earlier. The destroy hook not being
emitted on promises frequent enough is a known and reported issue.
See #14446 and
Jeff-Lewis/cls-hooked#11.
While all this is speculation for now, it all depends on the promise
object not being a part of the PromiseWrap resource object.
Ref: #14446
Ref: nodejs/diagnostics#188
PR-URL: #23443
Refs: #14446
Refs: nodejs/diagnostics#188
Reviewed-By: Benedikt Meurer <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: George Adams <[email protected]>
0 commit comments