/// Spawn a future on the tokio runtime. This function does not wrap the task in an `exit_future::Exit`
/// like [spawn](#method.spawn).
/// The caller of this function is responsible for wrapping up the task with an `exit_future::Exit` to  
/// ensure that the task gets canceled appropriately.
/// This is useful in cases where the future to be spawned needs to do additional cleanup work when
/// the task is completed/canceled (e.g. writing local variables to disk) or the task is created from
/// some framework which does its own cleanup (e.g. a hyper server).
Spawn a future on the tokio runtime. This function does not wrap the task in an `exit_future::Exit`
like [spawn](#method.spawn).
The caller of this function is responsible for wrapping up the task with an `exit_future::Exit` to
ensure that the task gets canceled appropriately.
This is useful in cases where the future to be spawned needs to do additional cleanup work when
the task is completed/canceled  or the task is created from
some framework which does its own cleanup .
Spawn a future on the tokio runtime . This function does not wrap the task in an ` exit_future :: Exit ` like [ spawn ] ( #method . spawn ) . The caller of this function is responsible for wrapping up the task with an ` exit_future :: Exit ` to ensure that the task gets canceled appropriately . This is useful in cases where the future to be spawned needs to do additional cleanup work when the task is completed / canceled or the task is created from some framework which does its own cleanup .
pub fn spawn_without_exit(
        &self,
        task: impl Future<Output = ()> + Send + 'static,
        name: &'static str,
    ) {
        let future = task.then(move |_| futures::future::ready(()));
        self.handle.spawn(future);
    }
pub fn spawn_without_exit ( & self , task : impl Future < Output = ( ) > + Send + ' static , name : & ' static str , ) { let future = task . then ( move | _ | futures :: future :: ready ( ( ) ) ) ; self . handle . spawn ( future ) ; }
Spawn a future on the tokio runtime.
Spawn a future on the tokio runtime .
&self
task
impl Future<Output = ()> + Send + 'static
name
&'static str