pub fn disable(event_id: EventId) -> Result<(),KernelError> {
    critical_section(|cs_token| {
        event_manager
            .borrow(cs_token)
            .borrow_mut()
            .disable(event_id)
    })
}
/// This function is used to disable events.
This function is used to disable events.
This function is used to disable events .
pub fn disable(event_id: EventId) -> Result<(),KernelError> {
    critical_section(|cs_token| {
        event_manager
            .borrow(cs_token)
            .borrow_mut()
            .disable(event_id)
    })
}
pub fn disable ( event_id : EventId ) -> Result < ( ) , KernelError > { critical_section ( | cs_token | { event_manager . borrow ( cs_token ) . borrow_mut ( ) . disable ( event_id ) } ) }
This function is used to disable events.
This function is used to disable events .
event_id
EventId
event_id
EventId