cosmic::task

Function stream

Source
pub fn stream<X: Into<Y> + 'static, Y: 'static>(
    stream: impl Stream<Item = X> + Send + 'static,
) -> Task<Y>
Expand description

Yields a task which will run a stream on the runtime executor.