Read-side of an async channel that consumes values via iteration or callbacks.
Implements AsyncIterable, so it can be consumed with for await...of.
Each iterator returned by [Symbol.asyncIterator]() replays from the
beginning of the buffered events independently.
Read-side of an async channel that consumes values via iteration or callbacks.
Implements
AsyncIterable, so it can be consumed withfor await...of. Each iterator returned by[Symbol.asyncIterator]()replays from the beginning of the buffered events independently.See
Example