UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

6 lines (5 loc) 263 B
/** * Stops consuming `stream` as soon as `failureSignal` aborts, including while * the underlying iterator is stalled in `next()`. */ export declare function interruptStreamOnFailure<T>(stream: AsyncIterable<T>, failureSignal: AbortSignal): AsyncIterable<T>;