@cprecioso/async-iterable-helpers
    Preparing search index...

    Interface AsyncIterableWrapper<T>

    interface AsyncIterableWrapper<T> {
        "[asyncIterator]"(): AsyncIterator<T, any, any>;
        pipe<U>(fn: PipeFn<T, U>): AsyncIterableWrapper<U>;
        sink<U>(fn: SinkFn<T, U>): Promise<U>;
    }

    Type Parameters

    • T

    Implements

    • AsyncIterable<T>
    Index
    • Drives the wrapped iterable through a sink, consuming it and producing a final value.

      Type Parameters

      • U

      Parameters

      Returns Promise<U>

      A promise resolving to the sink's result.