Yielded value type.
Return value type.
Error type.
The shared event buffer to read from.
The shared waiter list; resolved when new events arrive.
A promise that resolves/rejects with the channel result.
An AsyncSource.
Subscribers replay buffered events synchronously and stop at the first terminal event. A callback exception propagates to the caller flushing the subscription and detaches that subscriber. The producer must notify the remaining waiters even if one throws, as createAsyncChannel does.
Creates an AsyncSource backed by a shared event buffer.