pub fn end_running(&self, context: Box<UserContext>) {
        let mut inner = self.inner.lock();
        inner.context = Some(context);
        let state = inner.state;
        inner.change_state(state, &self.base);
    }
/// The thread ends running and takes back the context.
The thread ends running and takes back the context.
The thread ends running and takes back the context .
pub fn end_running(&self, context: Box<UserContext>) {
        let mut inner = self.inner.lock();
        inner.context = Some(context);
        let state = inner.state;
        inner.change_state(state, &self.base);
    }
pub fn end_running ( & self , context : Box < UserContext > ) { let mut inner = self . inner . lock ( ) ; inner . context = Some ( context ) ; let state = inner . state ; inner . change_state ( state , & self . base ) ; }
The thread ends running and takes back the context.
The thread ends running and takes back the context .
&self
context
Box<UserContext>
&self
context
Box<UserContext>