cosmic::iced_widget::renderer::graphics::futures

Function 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.