UNPKG

histoire

Version:

A fast story book powered by Vite

14 lines • 817 B
/** Own one collection budget across eligibility, process startup, browser work, and teardown. */ export declare function createCollectionDeadline(timeoutMs: number, external?: AbortSignal, until?: number): { /** Absolute deadline is private IPC metadata, never supplied by browser callers. */ until: number; /** All collection phases observe the same cancellation authority. */ signal: AbortSignal; /** Synchronous cloning/validation must not outrun a timer waiting for the event loop. */ assertCurrent(): void; /** Teardown uncertainty takes precedence over timeout and external cancellation. */ failure(error: unknown): unknown; /** Clear safety timer after confirmed terminal completion or failure. */ close: () => void; }; //# sourceMappingURL=collection-deadline.d.ts.map