Skip to content

async_hooks: execute destroy hooks earlier

Use a microtask to call destroy hooks in case there are a lot queued as immediate may be scheduled late in case of long running promise chains.

Queuing a mircrotasks in GC context is not allowed therefore an interrupt is triggered to do this in JS context as fast as possible.

fixes: https://github.com/nodejs/node/issues/34328 refs: https://github.com/nodejs/node/issues/33896

Merge request reports

Loading