A stream of events that can be consumed with a
for-await-loop and that can
also be cancelled externally. The second part is needed when cancellation may
occur during the
await phase of the loop, in which case calling
the only way to correctly release all stream resources.
• cancel: () => void
Cancel the stream and release all related resources.
▸ (): void
▸ [Symbol.asyncIterator](): AsyncIterator<Event, any, undefined>
Returns: AsyncIterator<Event, any, undefined>
Inherited from: void