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
queueMicrotask, a Promise-based fallback or finally a timer-backed queue.
When scheduleFn is provided, it is used before the Promise and timer-backed fallbacks, if
queueMicrotask is available it is used before all fallbacks.
When useTimeout is true, the timer-backed queue is used instead of the Promise fallback only
when native process.nextTick and queueMicrotask are unavailable.
maxQueuedTasks controls the fallback queue depth limit; when omitted the fallback queue uses
the default limit (set via setNextTickFallbackOptions) or a Node-compatible default of 1000.
Setting/passing maxQueuedTasks to 0 disables 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 queueMicrotask, a Promise-based fallback or finally a timer-backed queue.When
scheduleFnis provided, it is used before the Promise and timer-backed fallbacks, if queueMicrotask is available it is used before all fallbacks. WhenuseTimeoutistrue, the timer-backed queue is used instead of the Promise fallback only when nativeprocess.nextTickandqueueMicrotaskare unavailable.maxQueuedTaskscontrols the fallback queue depth limit; when omitted the fallback queue uses the default limit (set viasetNextTickFallbackOptions) or a Node-compatible default of 1000. Setting/passingmaxQueuedTasksto0disables the limit (for fallbacks only, the nativeprocess.nextTickis not affected by this limit).