Function asyncToArray

  • Converts an AsyncIterator to an array.

    Type Parameters

    • T

    Parameters

    • iterable: AsyncIterable<T>

    Returns Promise<T[]>