cosmic::task

Function future

source
pub fn future<X: Into<Y>, Y: 'static>(
    future: impl Future<Output = X> + Send + 'static,
) -> Task<Y>
Expand description

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