it-stream-types
    Preparing search index...

    Type Alias Source<T>

    Source: AsyncIterable<T> | Iterable<T>

    A "source" is something that can be consumed. It is an iterable object.

    This type is a union of both sync and async sources - it is useful to keep code concise but declared types should prefer to specify whether they accept sync or async sources since treating a synchronous source as an asynchronous one can lead to performance degradation due to artificially induced asynchronous behaviour.

    Type Parameters

    • T