pub fn channel_with_capacity<T>(capacity: usize) -> (Sender<T>, Receiver<T>)where T: MachineImpl,
Create a channel with a fixed capacity.