Items are emitted lazily, in source order, and the feed ends as soon as the quota is met rather than draining the
source: this is the standard way to bound an otherwise infinite feed.
Type Parameters
V
The type of items in the feed
Parameters
n: number
The maximum number of leading items to emit; values less than 1 empty the feed
Creates a task truncating the feed to a prefix.
Items are emitted lazily, in source order, and the feed ends as soon as the quota is met rather than draining the source: this is the standard way to bound an otherwise infinite feed.