pub fn sweep_event_table() {
    critical_section(|cs_token| {
        event_manager
            .borrow(cs_token)
            .borrow_mut()
            .sweep(get_time());
    })
}
/// Sweeps all events in event table and updates their counter, if counter has expired
/// then it dispatches the event and resets the counter.
Sweeps all events in event table and updates their counter, if counter has expired
then it dispatches the event and resets the counter.
Sweeps all events in event table and updates their counter if counter has expired then it dispatches the event and resets the counter .
pub fn sweep_event_table() {
    critical_section(|cs_token| {
        event_manager
            .borrow(cs_token)
            .borrow_mut()
            .sweep(get_time());
    })
}
pub fn sweep_event_table ( ) { critical_section ( | cs_token | { event_manager . borrow ( cs_token ) . borrow_mut ( ) . sweep ( get_time ( ) ) ; } ) }
Sweeps all events in event table and updates their counter, if counter has expired
then it dispatches the event and resets the counter.
Sweeps all events in event table and updates their counter if counter has expired then it dispatches the event and resets the counter .