@cprecioso/async-iterable-helpers
    Preparing search index...

    Function create

    • Wraps an iterable that is produced lazily by an async function. fn is only called once iteration starts, so any setup it does (and any error it throws) is deferred until then.

      Type Parameters

      • T

      Parameters

      • fn: () => Promise<Iterable<T, any, any> | AsyncIterable<T, any, any>>

        A function returning a promise of the source iterable.

      Returns AsyncIterableWrapper<Awaited<T>>

      A Wrapper yielding the awaited values of the produced iterable.