doc: recommend queueMicrotask over process.nextTick#37484
doc: recommend queueMicrotask over process.nextTick#37484jasnell wants to merge 1 commit intonodejs:masterfrom
Conversation
|
I think one obvious (and probably note-worthy) incompatibility compared to |
Good point and definitely worth adding. |
|
Should |
We likely cannot ever deprecate process.nextTick, but we can start steering people towards queueMicrotask for most cases. Signed-off-by: James M Snell <[email protected]> Fixes: nodejs#36870
e4c86c3 to
02f32c6
Compare
|
@Delapouite ... yes, but that's a separate change. |
Fixes: #562 Refs: nodejs/node#37484
|
Landed in ee6c467 |
We likely cannot ever deprecate process.nextTick, but we can start steering people towards queueMicrotask for most cases. Signed-off-by: James M Snell <[email protected]> Fixes: #36870 PR-URL: #37484 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
We likely cannot ever deprecate process.nextTick, but we can start steering people towards queueMicrotask for most cases. Signed-off-by: James M Snell <[email protected]> Fixes: #36870 PR-URL: #37484 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
We likely cannot ever deprecate process.nextTick, but we can start steering people towards queueMicrotask for most cases. Signed-off-by: James M Snell <[email protected]> Fixes: #36870 PR-URL: #37484 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Robert Nagy <[email protected]>
We likely cannot ever deprecate process.nextTick, but we can start
steering people towards queueMicrotask for most cases.
Signed-off-by: James M Snell [email protected]
Fixes: #36870