@nevware21/ts-utils
    Preparing search index...

    Interface NextTickOptions

    Controls how scheduleNextTick chooses fallback behavior when native process.nextTick is not available.

    0.15.0

    interface NextTickOptions {
        maxQueuedTasks?: number;
        scheduleFn?: ScheduleMicrotaskFn;
        useTimeout?: boolean;
    }
    Index

    Properties

    maxQueuedTasks?: number

    The 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.

    scheduleFn?: ScheduleMicrotaskFn

    Provide 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.

    useTimeout?: boolean

    When 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.