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

    Function chain

    • Creates a feed concatenating multiple feeds.

      Feeds are consumed one at a time, each fully drained before the next is opened, so items are emitted in argument order and a feed that never runs dry starves the ones behind it. Nothing is drawn from a feed until its turn comes, so a feed deferring retrieval until consumption, as feed does with a promised data source, is left untouched until then.

      Type Parameters

      • V

        The type of values contributed to the feed

      Parameters

      • ...feeds: readonly Feed<V>[]

        The feeds to concatenate

      Returns Feed<V>

      A feed yielding the items of all feeds in argument order

      await pipe(
      (chain(items(1, 2), items(3, 4)))
      (toArray())
      ); // [1, 2, 3, 4]

      feed to open a feed from a data source of any other shape