Function asyncifyErrback

  • Converts a Node.js style error first callback to an async-iterable sequence.

    Type Parameters

    • TSource

      The type of the returned value from the callback.

    Parameters

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

      The Node.js error first callback to convert to an async-iterable.

        • (...xs): any
        • Parameters

          • Rest ...xs: any[]

          Returns any

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

    A function, when invoked, contains the result of the callback as an async-iterable.

Generated using TypeDoc