Ferrous API Reference

All Types / Ferrous.Concurrency

class TypedChannel

public static class TypedChannel

Factory for Rust-style split-capability typed channels (ChannelSender<T> and ChannelReceiver<T>) backed by Channel<T>.

Methods

public static (ChannelSender<T> Sender, ChannelReceiver<T> Receiver) CreateBounded<T>(int capacity)

Creates a bounded channel with distinct sender and receiver capability handles.

public static (ChannelSender<T> Sender, ChannelReceiver<T> Receiver) CreateUnbounded<T>()

Creates an unbounded channel with distinct sender and receiver capability handles.