Struct gj::EventLoop [] [src]

pub struct EventLoop {
    // some fields omitted
}

A queue of events being executed in a loop on a single thread.

Methods

impl EventLoop
[src]

fn top_level<F>(main: F) -> Result<()Box<Error>> where F: FnOnce(&WaitScope) -> Result<()Box<Error>>

Creates an event loop for the current thread, panicking if one already exists. Runs the given closure and then drops the event loop.