Struct gj::EventLoop [] [src]

pub struct EventLoop { /* fields omitted */ }

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

Methods

impl EventLoop
[src]

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