UNPKG

ix

Version:

The Interactive Extensions for JavaScript

13 lines (12 loc) 350 B
export declare class AsyncSink<TSource> implements AsyncIterableIterator<TSource> { private _ended; private _values; private _resolvers; constructor(); [Symbol.asyncIterator](): this; write(value: TSource): void; error(error: any): void; private _push; next(): Promise<IteratorResult<TSource>>; end(): void; }