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