• Create a dynamic source that is created each time it's subscribed

    Type Parameters

    • T

    Parameters

    • factory: (() => Stream<T>)

      A function returning a source of the desired type. It will be called whenever the lazy() stream is subscribed, and its result subscribed to.

    Returns Source<T>

    A stream of the same type as the factory function returns