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
There are two problems with process.nextTick.
Less severe is that it reduces performance for
all async callback from native code.
The more severe one is that it causes weird and
unpredictable behavior when trying to interop
with promises and async/await code.
In particular, we have an invariant where we always
emit certain events and invoke certain callbacks
"asynchronously". However, that currently doesn't
apply to Promise, since we "force" asynchronousity
throug process.nextTick which occurs before any
microtick. Hence, for any promise/micro-tick based
code things actually appear to occur synchronously.
Refs: #51070
PR: #51114
0 commit comments