/// Spawns a static future onto the thread pool. The returned Task is a future. It can also be
/// cancelled and "detached" allowing it to continue running without having to be polled by the
/// end-user.
Spawns a static future onto the thread pool. The returned Task is a future. It can also be
cancelled and "detached" allowing it to continue running without having to be polled by the
end-user.
Spawns a static future onto the thread pool . The returned Task is a future . It can also be cancelled and " detached " allowing it to continue running without having to be polled by the end - user .
pub fn spawn<T>(&self, future: impl Future<Output = T> + Send + 'static) -> Task<T>
    where
        T: Send + 'static,
    {
        Task::new(self.executor.spawn(future))
    }
pub fn spawn < T > ( & self , future : impl Future < Output = T > + Send + ' static ) -> Task < T > where T : Send + ' static , { Task :: new ( self . executor . spawn ( future ) ) }
Spawns a static future onto the thread pool.
Spawns a static future onto the thread pool .
&self
future
impl Future<Output = T> + Send + 'static