dispatch_thread_events_with_callback

Function dispatch_thread_events_with_callback 

Source
pub fn dispatch_thread_events_with_callback<F>(cb: F)
where F: FnMut() + 'static,
Expand description

Dispatch system events in the current thread AND execute a callback after each peeking attempt. Unlike dispath_thread_events, this method will not pause the thread while waiting for events.