Function throwError

  • Creates an async-iterable that throws the specified error upon iterating.

    Type Parameters

    • TSource = any

    Parameters

    • error: any

      The error to throw upon iterating the iterable.

    Returns Iterable<TSource>

    An iterable that throws when iterated.

Generated using TypeDoc