interface Channel
thefrontside/effectioninterface Channel<T, TClose> extends Stream<T, TClose>
A broadcast channel that multiple consumers can subscribe to the via the same https://effection-www-7a79x8qmc0zv.deno.dev/api/v3/Stream, and messages sent to the channel are received by all consumers. The channel is not buffered, so if there are no consumers, the message is dropped.
Type Parameters
T
TClose
Methods
- send(message: T): https://effection-www-7a79x8qmc0zv.deno.dev/api/v3/Operation<void>
Send a message to all subscribers of this https://effection-www-7a79x8qmc0zv.deno.dev/api/v3/Channel
- close(value: TClose): https://effection-www-7a79x8qmc0zv.deno.dev/api/v3/Operation<void>
End every subscription to this https://effection-www-7a79x8qmc0zv.deno.dev/api/v3/Channel