Function fromAsyncIterable

  • Convert an async iterable to an event source

    Each time the resulting source is subscribed to, it will emit an event for each item output by the iterator, then end the stream. Pause/resume is supported.

    Type Parameters

    • T

    Parameters

    • iterable: AsyncIterable<T>

    Returns Source<T>