• Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • @sequelize/utils
  • common
  • arrayFromAsync

Function arrayFromAsync

  • arrayFromAsync<T>(asyncIterable: AsyncIterable<T>): Promise<T[]>

    Implements https://github.com/tc39/proposal-array-from-async This function works like Array.from, but accepts async iterators instead of sync iterators.

    Type Parameters

    • T

    Parameters

    • asyncIterable: AsyncIterable<T>

      An async iterable

    Returns Promise<T[]>

    A promise that resolves to an array that includes all items yielded by the async iterable.

    • Defined in common/array-from-async.ts:8

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc