Function cosmic::iced_runtime::futures::stream::try_channel
source ยท pub fn try_channel<T, E, F>(
size: usize,
f: impl FnOnce(Sender<T>) -> F,
) -> impl Stream<Item = Result<T, E>>
Expand description
Creates a new Stream
that produces the items sent from a Future
that can fail to the mpsc::Sender
provided to the closure.