pub fn add_idle_callback<F>(&self, callback: F)
    where
        F: FnOnce(&mut dyn window::WinHandler) + Send + 'static,
    {
        tracing::trace!("add_idle_callback initiated");
        let mut queue = self.queue.lock().unwrap();
        queue.push(Kind::Callback(Box::new(callback)));
    }
/// Add an idle handler, which is called (once) when the message loop
/// is empty. The idle handler will be run from the main UI thread, and
/// won't be scheduled if the associated view has been dropped.
///
/// Note: the name "idle" suggests that it will be scheduled with a lower
/// priority than other UI events, but that's not necessarily the case.
Add an idle handler, which is called (once) when the message loop
is empty. The idle handler will be run from the main UI thread, and
won't be scheduled if the associated view has been dropped.

the name "idle" suggests that it will be scheduled with a lower
priority than other UI events, but that's not necessarily the case.
Add an idle handler which is called ( once ) when the message loop is empty . The idle handler will be run from the main UI thread and won ' t be scheduled if the associated view has been dropped . the name " idle " suggests that it will be scheduled with a lower priority than other UI events but that ' s not necessarily the case .
pub fn add_idle_callback<F>(&self, callback: F)
    where
        F: FnOnce(&mut dyn window::WinHandler) + Send + 'static,
    {
        tracing::trace!("add_idle_callback initiated");
        let mut queue = self.queue.lock().unwrap();
        queue.push(Kind::Callback(Box::new(callback)));
    }
pub fn add_idle_callback < F > ( & self , callback : F ) where F : FnOnce ( & mut dyn window :: WinHandler ) + Send + ' static , { tracing :: trace ! ( " " ) ; let mut queue = self . queue . lock ( ) . unwrap ( ) ; queue . push ( Kind :: Callback ( Box :: new ( callback ) ) ) ; }
Add an idle handler, which is called (once) when the message loop
is empty.
Add an idle handler which is called ( once ) when the message loop is empty .
&self
callback
F
&self
callback
F