MessagePortToChannelX extension
Bridge Web Worker ports to structured channel processing.
Convert raw MessagePort communication to type-safe channel operations. Essential for building robust Web Worker architectures with proper error handling and message flow control.
- on
-
- MessagePort
Methods
-
toMpmc<
T> ({int? capacity, DropPolicy policy = DropPolicy.block, OnDrop< T> ? onDrop, bool chunked = true, bool strict = true}) → (MpmcSender<T> , MpmcReceiver<T> ) -
Available on MessagePort, provided by the MessagePortToChannelX extension
Convert port messages to MPMC channel. -
toMpsc<
T> ({int? capacity, DropPolicy policy = DropPolicy.block, OnDrop< T> ? onDrop, bool chunked = true, bool strict = true}) → (MpscSender<T> , MpscReceiver<T> ) -
Available on MessagePort, provided by the MessagePortToChannelX extension
Convert port messages to MPSC channel.