pub fn trigger_finish_hooks(&mut self) {
        assert!(self.is_finished());
        for sender in ::std::mem::replace(&mut self.finish_hooks, Vec::new()) {
            match sender.send(()) {
                Ok(()) => { /* Do nothing */ }
                Err(_) => {
                    /* Just log error, it is non fatal */
                    debug!("Failed to inform about finishing task");
                }
            }
        }
    }
/// Inform observers that task is finished
Inform observers that task is finished
Inform observers that task is finished
pub fn trigger_finish_hooks(&mut self) {
        assert!(self.is_finished());
        for sender in ::std::mem::replace(&mut self.finish_hooks, Vec::new()) {
            match sender.send(()) {
                Ok(()) => { /* Do nothing */ }
                Err(_) => {
                    /* Just log error, it is non fatal */
                    debug!("Failed to inform about finishing task");
                }
            }
        }
    }
pub fn trigger_finish_hooks ( & mut self ) { assert ! ( self is_finished ( ) ) ; for sender in :: std :: mem :: replace ( & mut self . finish_hooks , Vec :: new ( ) ) { match sender . send ( ( ) ) { Ok ( ( ) ) => { /* Do nothing */ } Err ( _ ) => { /* Just log error, it is non fatal */ debug ! ( " " ) ; } } } }
Inform observers that task is finished
Inform observers that task is finished
&mut self
&mut self