@ende/async/channel

ende add jsr:@ende/async

Version 2026.10.15 on JSR.

Exports

  • Channel — An async channel for communicating between concurrent tasks with optional bounded buffering and backpressure.
  • ChannelClosedError — Error thrown when operating on a closed channel. When thrown from Channel.send, the `value` property carries the unsent value for recovery.
  • ChannelOptions — Options for the Channel constructor.
  • ChannelReceiveOptions — Options for Channel.receive.
  • ChannelReceiveResult — Result of a non-blocking Channel.tryReceive call. Discriminate on the `state` field:
  • ChannelSendOptions — Options for Channel.send.