Trait gj::EventPort [] [src]

pub trait EventPort<E> {
    fn wait(&mut self) -> Result<(), E>;
}

Interface between an EventLoop and events originating from outside of the loop's thread. Needed in Promise::wait().

Required Methods

Waits for an external event to arrive, blocking the thread if necessary.

Implementors