af_core::channel
pub fn with_capacity<T>(capacity: usize) -> (Sender<T>, Receiver<T>)
Creates a channel with a buffer of a given capacity.