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
{{ message }}
Repository navigation
ffi: nextTick and microtasks queued in event-loop-invoked callbacks are not drained #66917
Node runs its own event-loop callbacks inside InternalCallbackScope, whose Close() drains the nextTick queue and microtasks. ffi.getCurrentEventLoop() exists so native code can call back into JS from the loop, so those callbacks should get the same treatment.
The queued work only runs after some unrelated Node callback. If none is pending, it runs during beforeExit. Any promise-based work started inside such a callback stalls until then.
Activity