@pwngh/economy-lab
    Preparing search index...

    Type Alias Supervisor

    The handle createSupervisor returns.

    type Supervisor = {
        start?(intervalMs: number): () => void;
        tick(): Promise<readonly AuditRecord[]>;
    }
    Index
    • Ticks on the supplied Scheduler every intervalMs and returns the cancel function. Present only when createSupervisor was given a Scheduler.

      Parameters

      • intervalMs: number

      Returns () => void

    • Runs every detection pass once against the current clock and returns the audit records the tick emitted (each already delivered to the audit sink), empty when nothing fired. A tick that arrives while one is still running returns an empty array without running — overlap is skipped, not queued.

      Returns Promise<readonly AuditRecord[]>