pub fn try_lock(&self) -> Option<ReactorLock<'_>> {
        self.events
            .try_lock()
            .map(|events| {
                let reactor = self;
                ReactorLock { reactor, events }
            })
            .ok()
    }
/// Attempts to lock the reactor.
Attempts to lock the reactor.
Attempts to lock the reactor .
pub fn try_lock(&self) -> Option<ReactorLock<'_>> {
        self.events
            .try_lock()
            .map(|events| {
                let reactor = self;
                ReactorLock { reactor, events }
            })
            .ok()
    }
pub fn try_lock ( & self ) -> Option < ReactorLock < ' _ > > { self . events . try_lock ( ) . map ( | events | { let reactor = self ; ReactorLock { reactor , events } } ) . ok ( ) }
Attempts to lock the reactor.
Attempts to lock the reactor .
&self
&self