OptionalmaxThe maximum number of queued nextTick callbacks that may be pending at once when using the fallback queues. When the limit is reached, scheduling throws a RangeError. A callback which has already run is not pending (so a callback which schedules another isn't limited by the callbacks run before it), while a cancelled callback is still counted until the queue is next run.
OptionalscheduleProvide a custom scheduling function to use when native process.nextTick is unavailable.
When specified, this takes precedence over both the Promise fallback and the timer-backed
queue fallback.
OptionaluseWhen true, skips the Promise fallback and uses the timer-backed queue instead.
When omitted or false, scheduleNextTick prefers the Promise fallback before the timer fallback.
Controls how
scheduleNextTickchooses fallback behavior when nativeprocess.nextTickis not available.Since
0.15.0