@metreeca/flow - v0.9.21
    Preparing search index...

    Interface Task<V, R>

    Intermediate operation applied to a feed.

    A task consumes the items of a Feed and produces new ones, transforming, filtering, reordering or regrouping items along the way; the resulting feed accepts further tasks, so tasks chain into longer pipes.

    Note

    Optional values need not be filtered out: undefined entries are dropped as they re-enter the feed.

    Type Parameters

    • V

      The type of input values, never undefined, as feeds never carry it

    • R = V

      The type of output values, defaulting to V for tasks preserving the item type

    • Transforms the feed.

      Parameters

      • values: AsyncIterable<V>

        The source values to process

      Returns AsyncIterable<R | undefined>

      The transformed values; undefined entries are dropped as they re-enter the feed