/// Removes this source from the event loop.
Removes this source from the event loop.
Removes this source from the event loop .
pub fn remove(&self, token: RegistrationToken) {
        if let Some(source) = self.inner.sources.borrow_mut().remove(token.key) {
            if let Err(e) = source.unregister(&mut self.inner.poll.borrow_mut()) {
                log::warn!(
                    "[calloop] Failed to unregister source from the polling system: {:?}",
                    e
                );
            }
        }
    }
pub fn remove ( & self , token : RegistrationToken ) { if let Some ( source ) = self . inner . sources . borrow_mut ( ) . remove ( token . key ) { if let Err ( e ) = source . unregister ( & mut self . inner . poll . borrow_mut ( ) ) { log :: warn ! ( " " e ) ; } } }
Removes this source from the event loop.
Removes this source from the event loop .
&self
token
RegistrationToken