pub fn wake_on_events(wake: impl Fn() + Send + 'static)Expand description
Call wake from another thread whenever the main context has events, so the host’s run loop can call crate::WebView::tick then rather than on a timer. After a call to wake the watch rests until the next tick, so a host that does not tick is woken once. Call it once, from the thread that ticks.