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

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.
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.