• Converts an existing string into an async-iterable of characters.

    Parameters

    • source: string

      The string to convert to an async-iterable.

    Returns AsyncIterable<string>

    An async-iterable stream of characters from the source.

  • Converts the AsyncIterable-like input or single element into an AsyncIterable.

    Type Parameters

    • T

      The type of elements in the async-iterable like sequence.

    Parameters

    • source: T | AsyncIterableInput<T>

      The async-iterable like input to convert to an async-iterable.

    Returns AsyncIterable<T>

    An async-iterable stream from elements in the async-iterable like sequence.

  • Converts the single element into an async-iterable sequence.

    Type Parameters

    • T

      The type of the input to turn into an async-iterable sequence.

    Parameters

    • source: T

      The single element to turn into an async-iterable sequence.

    Returns AsyncIterable<T>

    An async-iterable sequence which contains the single element.

Generated using TypeDoc