UNPKG

@johngw/stream

Version:

Reactive programming tools using the WHATWG Streams API.

16 lines 447 B
/** * Hold up a stream until a promise resolves. If it errors, * the error will be emitted to the stream. * * @group Transformers * @example * ``` * ----a-------b------| * * interpose(async () => await setTimeout(50)) * * --------a--------b-| * ``` */ export declare function interpose<T>(promise: Promise<void> | ((chunk: T) => Promise<void>)): import("node:stream/web").TransformStream<T, T>; //# sourceMappingURL=interpose.d.ts.map