windease API reference - v0.8.0
    Preparing search index...

    Interface ThrottlePolicy

    interface ThrottlePolicy {
        dwell?: Partial<Record<MachineName, number>>;
        maxWaitMs?: number;
        notifyMs?: number;
        stagger?: { batch: number; ms: number };
    }
    Index

    Properties

    dwell?: Partial<Record<MachineName, number>>

    Per-machine minimum dwell in ms. Machines omitted are not gated. Each configured value must be a finite number >= 0.

    maxWaitMs?: number

    Starvation cap. Defaults to 4x the largest configured dwell. Must be a finite number >= 0 if provided. 0 disables the cap (see Publisher.isEligible) rather than forcing an immediate publish.

    notifyMs?: number

    Flush window in ms. Omit for microtask scheduling (the default). Must be a finite number >= 0 if provided. 0 is legal and meaningful — a real zero-delay timer, distinct from omitting the field.

    stagger?: { batch: number; ms: number }

    Publish at most batch newly-eligible nodes every ms. batch must be a finite integer >= 1 — an explicit 0 (or any value below 1) would silently starve every dwelling node forever, so it is rejected at construction rather than papered over. ms must be a finite number >= 0.