Struct nannou::app::Proxy[][src]

pub struct Proxy { /* fields omitted */ }

A handle to the App that can be shared across threads. This may be used to "wake up" the App's inner event loop.

Methods

impl Proxy
[src]

Wake up the application!

This wakes up the App's inner event loop and inserts an Awakened event.

The app::Proxy stores a flag in order to track whether or not the EventsLoop is currently blocking and waiting for events. This method will only call the underlying winit::EventsLoopProxy::wakeup method if this flag is set to true and will immediately set the flag to false afterwards. This makes it safe to call the wakeup method as frequently as necessary across methods without causing any underlying OS methods to be called more than necessary.

Auto Trait Implementations

impl Send for Proxy

impl Sync for Proxy