Interface AsyncIterableExt<T>

Extended Asynchronous Iterable.

Type Parameters

  • T

Hierarchy

  • AsyncIterable<T>
    • AsyncIterableExt

Properties

Methods

Properties

first: Promise<undefined | T>

A getter that creates a new iterator, iterates to the first element and returns the value.

It is to simplify accessing value of single-element iterables.

Returns

  • first element / Promise produced by the iterable;
  • Promise<undefined>, if the iterable produced nothing.

Methods