mogami-stream - v0.2.0
    Preparing search index...

    Function toArray

    • Collects all values from source into an array and waits for cleanup before resolving.

      Accepts synchronous and asynchronous iterables. If both stream processing and cleanup fail, the primary processing error is thrown.

      Type Parameters

      • T

      Parameters

      Returns Promise<T[]>