@jiminp/tooltool
    Preparing search index...

    Module iterator

    Interfaces

    AsyncChannel

    Bidirectional async channel combining AsyncSink and AsyncSource.

    AsyncSink

    Write-side of an async channel that pushes values, completion, or errors.

    AsyncSource

    Read-side of an async channel that consumes values via iteration or callbacks.

    Type Aliases

    AsyncEvent

    Union of generator events: yield, return, or throw.

    AsyncReturnEvent

    A return event.

    AsyncThrowEvent

    A throw event.

    AsyncYieldEvent

    A yield event.

    Functions

    batched

    Yields elements from a generator in batches of size n.

    createAsyncChannel

    Creates an async channel that buffers values and replays them to each iterator.

    createAsyncSource

    Creates an AsyncSource backed by a shared event buffer.

    isAsyncIterable

    Type guard: checks if an iterable is async.

    pipeToAsyncSink

    Pipes values from an async source to an async sink, forwarding all yielded values, the final return value, and any errors that occur.

    range

    Creates a lazy generator yielding a sequence of numbers or bigints (like Python's range()).

    runGenerator

    Runs a generator to completion, optionally observing each yielded value.