UNPKG

stream-chain

Version:

Chain functions, generators, Node streams, and Web streams into a pipeline with backpressure support.

9 lines (7 loc) 224 B
/** * Drains an async iterable, returning its last yielded value (or `undefined` * if it yielded nothing). */ declare function drain<T>(g: AsyncIterable<T>): Promise<T | undefined>; export default drain; export {drain};