Function iced::command::channel

source ·
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,
Expand description

Creates a Command that produces the Messages published from a Future to an [mpsc::Sender] with the given bounds.