pub fn channel<Fut, Message>( size: usize, f: impl FnOnce(Sender<Message>) -> Fut + MaybeSend + 'static ) -> Command<Message>where Fut: Future<Output = ()> + MaybeSend + 'static, Message: 'static + MaybeSend,
Creates a Command that produces the Messages published from a Future to an [mpsc::Sender] with the given bounds.
Command
Message
Future
mpsc::Sender