pub fn wakeup(&self) -> Result<(), winit::EventsLoopClosed> {
        if self.events_loop_is_asleep.load(atomic::Ordering::Relaxed) {
            self.events_loop_proxy.wakeup()?;
            self.events_loop_is_asleep
                .store(false, atomic::Ordering::Relaxed);
        }
        Ok(())
    }
/// 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.
Wake up the application.

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.
Wake up the application . 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 .
pub fn wakeup(&self) -> Result<(), winit::EventsLoopClosed> {
        if self.events_loop_is_asleep.load(atomic::Ordering::Relaxed) {
            self.events_loop_proxy.wakeup()?;
            self.events_loop_is_asleep
                .store(false, atomic::Ordering::Relaxed);
        }
        Ok(())
    }
pub fn wakeup ( & self ) -> Result < ( ) , winit :: EventsLoopClosed > { if self . events_loop_is_asleep . load ( atomic :: Ordering :: Relaxed ) { self . events_loop_proxy . wakeup ( ) ? ; self . events_loop_is_asleep . store ( false , atomic :: Ordering :: Relaxed ) ; } Ok ( ( ) ) }
Wake up the application!
Wake up the application!
&self
&self