SlotWaits

tcmts.cli.budget.SlotWaits · #xyhkqxpk · type

What says a run's waits for slots (take, for each take from a slotPool), and how long it waited.

import type { SlotPool } from "#codebase/tcmts/cli/budget";

export interface SlotWaits {
  /** take `count` slots from `pool` as `what` (`<kind> of <root> on <branch>`: `tcm test of …`), saying how the wait goes */
  take(pool: SlotPool, what: string, count?: number): Promise<() => void>;
  /** how long, in all, the run had a take waiting (ms) */
  waited(): number;
}

uses

used by