fn request_redraw(&mut self, window_id: WindowId) {
        if let Some(window_events) = self.window_events.get_mut(&window_id) {
            // Need to republish the window events so we can share with the process
            let mut window_events = window_events.republish();

            self.run_process(async move {
                window_events.publish(DrawEvent::Redraw).await;
            });
        }
    }
///
/// Sends a redraw request to a window
///
Sends a redraw request to a window
Sends a redraw request to a window
fn request_redraw(&mut self, window_id: WindowId) {
        if let Some(window_events) = self.window_events.get_mut(&window_id) {
            // Need to republish the window events so we can share with the process
            let mut window_events = window_events.republish();
            self.run_process(async move {
                window_events.publish(DrawEvent::Redraw).await;
            });
        }
    }
fn request_redraw ( & mut self , window_id : WindowId ) { if let Some ( window_events ) = self . window_events . get_mut ( & window_id ) { // Need to republish the window events so we can share with the process let mut window_events = window_events . republish ( ) ; self . run_process ( async move { window_events . publish ( DrawEvent :: Redraw ) . await ; } ) ; } }
Sends a redraw request to a window
Sends a redraw request to a window
&mut self
window_id
WindowId