Function safeIter

  • Yield all values from an iterable but catch any error.

    Type Parameters

    • T

    Parameters

    • iterable: AnyIterable<T>

      Input iterable.

    • Optional onError: ((err?) => void)

      Callback to receive errors thrown by the iterable.

        • (err?): void
        • Parameters

          • Optional err: unknown

          Returns void

    Returns AsyncIterableIterator<T>

    Iterable that does not throw errors.

Generated using TypeDoc