ReceivePortToChannelX extension
Bridge isolate ports to structured channel processing.
Convert raw isolate message passing to type-safe channel operations. Essential for building robust isolate architectures with proper error handling and backpressure management.
- on
Methods
-
toChannel<
T> (ChannelType type, {int? capacity, DropPolicy policy = DropPolicy.block, OnDrop< T> ? onDrop, bool chunked = true, bool strict = true, String? metricsId}) → (dynamic, dynamic) -
Available on ReceivePort, provided by the ReceivePortToChannelX extension
Convert port messages to a channel with unified API. -
toMpmc<
T> ({int? capacity, DropPolicy policy = DropPolicy.block, OnDrop< T> ? onDrop, bool chunked = true, bool strict = true, String? metricsId}) → (MpmcSender<T> , MpmcReceiver<T> ) -
Available on ReceivePort, provided by the ReceivePortToChannelX extension
Convert port messages to MPMC channel (legacy method). -
toMpsc<
T> ({int? capacity, DropPolicy policy = DropPolicy.block, OnDrop< T> ? onDrop, bool chunked = true, bool strict = true, String? metricsId}) → (MpscSender<T> , MpscReceiver<T> ) -
Available on ReceivePort, provided by the ReceivePortToChannelX extension
Convert port messages to MPSC channel (legacy method).