The callback to execute.
Optionaloptions: NextTickOptionsOptional fallback behavior when native process.nextTick is not available.
A handler that can be used to cancel or refresh the scheduled callback.
Schedules a callback to run using process.nextTick when available and otherwise uses an
Promise-based fallback before using the timer-backed queue.
When scheduleFn is provided, it is used before the Promise and timer-backed fallbacks.
When useTimeout is true, the timer-backed queue is used instead of the Promise fallback.
maxQueuedTasks controls the fallback queue depth limit; when omitted the Promise/timer fallback queues
use a Node-compatible default of 1000. Set maxQueuedTasks to 0 to disable the limit (for fallbacks only,
the native process.nextTick is not affected by this limit).
The callback to execute.
Optional callback arguments to pass when the callback executes.
Optionaloptions: NextTickOptionsOptional fallback behavior when native process.nextTick is not available.
A handler that can be used to cancel or refresh the scheduled callback.
Schedules a callback to run using
process.nextTickwhen available and otherwise uses an Promise-based fallback before using the timer-backed queue.When
scheduleFnis provided, it is used before the Promise and timer-backed fallbacks. WhenuseTimeoutistrue, the timer-backed queue is used instead of the Promise fallback.maxQueuedTaskscontrols the fallback queue depth limit; when omitted the Promise/timer fallback queues use a Node-compatible default of 1000. SetmaxQueuedTasksto0to disable the limit (for fallbacks only, the nativeprocess.nextTickis not affected by this limit).