fn run_process<Fut: 'static+Future<Output=()>>(&mut self, future: Fut) {
        // Box the future for polling
        let future = future.boxed_local();

        // Assign an ID to this future (we use this for waking it up)
        let future_id = NEXT_FUTURE_ID.fetch_add(1, Ordering::Relaxed);

        // Store in the runtime
        self.futures.insert(future_id, future);

        // Perform the initial polling operation on the future
        self.poll_future(future_id);
    }
///
/// Runs a process in the context of this runtime
///
Runs a process in the context of this runtime
Runs a process in the context of this runtime
fn run_process<Fut: 'static+Future<Output=()>>(&mut self, future: Fut) {
        // Box the future for polling
        let future = future.boxed_local();
        // Assign an ID to this future (we use this for waking it up)
        let future_id = NEXT_FUTURE_ID.fetch_add(1, Ordering::Relaxed);
        // Store in the runtime
        self.futures.insert(future_id, future);
        // Perform the initial polling operation on the future
        self.poll_future(future_id);
    }
fn run_process < Fut : ' static + Future < Output = ( ) > > ( & mut self , future : Fut ) { // Box the future for polling let future = future . boxed_local ( ) ; // Assign an ID to this future (we use this for waking it up) let future_id = NEXT_FUTURE_ID . fetch_add ( 1 , Ordering :: Relaxed ) ; // Store in the runtime self . futures . insert ( future_id , future ) ; // Perform the initial polling operation on the future self . poll_future ( future_id ) ; }
Runs a process in the context of this runtime
Runs a process in the context of this runtime
&mut self
future
Fut