pub fn future<X: Into<Y>, Y: 'static>( future: impl Future<Output = X> + Send + 'static, ) -> Task<Y>
Yields a task which will run the future on the runtime executor.