gj
pub struct EventLoop { // some fields omitted }
A queue of events being executed in a loop on a single thread.
impl EventLoop
fn top_level<R, F>(main: F) -> R where F: FnOnce(&WaitScope) -> R
Creates an event loop for the current thread, panicking if one already exists. Runs the given closure and then drops the event loop.