The type of values contributed to the feed
A feed carrying the items contributed by data
await pipe(
(feed([1, 2, 3]))
(toArray())
); // [1, 2, 3]
await pipe(
(feed(new Set([1, 2, 3])))
(toArray())
); // [1, 2, 3]
await pipe(
(feed(fetchReport()))
(toArray())
); // the items of the awaited report
items to open a feed from values contributed as they are, without shape inspection
Creates a feed from a data source.
The source is a Data value, normalised into the feed according to its shape, with
undefinedvalues dropped as they enter it. Sources are batches of items rather than single values, so a lone value opens a feed once wrapped in an array, and an empty batch opens an empty feed. A promised source is awaited when the feed is consumed, deferring retrieval from APIs, databases or any other asynchronous source until then. This is also the adapter custom feeds wrap their async generators in, so that their items enter under the same guarantees.