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
My understanding is this: The batch is constructed, and schedules its post-promise job, before the promises to return values are constructed. This means that the associated microtask would always be queued before those promises start resolving. I don't see a way to use the queueMicrotask to schedule its job "after" Promises. setTimeout (and setImmediate, though that's deprecated) will execute after, which is why they're the backup for process.nextTick.
It's available as of v11—isn't it better than
process.nextTick
? https://nodejs.org/api/globals.html#queuemicrotaskcallbackdataloader/src/index.js
Lines 239 to 255 in d336bd1
Just a question...
Thanks,
A.
The text was updated successfully, but these errors were encountered: