• Converts the callback function into wrapped function which returns an async-iterable.

    Type Parameters

    • TSource

      The type of the value returned from the callback.

    Parameters

    • func: ((...xs) => any)

      The callback function to wrap as an async-iterable.

        • (...xs): any
        • Parameters

          • Rest ...xs: any[]

          Returns any

    Returns ((...args) => AsyncIterable<TSource>)

    A function when invoked, returns an async-iterable from the callback.

Generated using TypeDoc