@metreeca/pipe - v0.9.11
    Preparing search index...

    Function peek

    • Creates a task executing a side effect for each item without modifying the stream.

      Items are processed sequentially and output order is preserved. Useful for debugging or monitoring items as they flow through the pipeline.

      Type Parameters

      • V

        The type of items in the stream

      Parameters

      • consumer: (item: V) => unknown

        The function to execute for each item (return value is ignored)

      Returns Task<V>

      A task that executes the consumer for each item