Function cosmic::iced_futures::boxed_stream

source ยท
pub fn boxed_stream<T, S>(stream: S) -> Pin<Box<dyn Stream<Item = T> + Send>>
where S: Stream<Item = T> + Send + 'static,
Expand description

Boxes a stream.

  • On native platforms, it needs a Send requirement.
  • On the Web platform, it does not need a Send requirement.