| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
I think one obvious (and probably note-worthy) incompatibility compared to process.nextTick() is that you cannot pass values to the callback, something node core takes advantage of extensively for convenience and performance. |
Sorry, something went wrong.
Good point and definitely worth adding. |
Sorry, something went wrong.
|
Should queueMicrotask be also mentioned in this documentation page about the event loop: https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/ ? |
Sorry, something went wrong.
We likely cannot ever deprecate process.nextTick, but we can start steering people towards queueMicrotask for most cases. Signed-off-by: James M Snell <jasnell@gmail.com> Fixes: nodejs#36870
|
@Delapouite ... yes, but that's a separate change. |
Sorry, something went wrong.
Fixes: #562 Refs: nodejs/node#37484
| Back | FazBrowse Home | New Git URL |
We likely cannot ever deprecate process.nextTick, but we can start
steering people towards queueMicrotask for most cases.
Signed-off-by: James M Snell jasnell@gmail.com
Fixes: #36870