/// Starts a task that processes `fuchsia.ui.keyboard.focus.Controller`.
/// This method returns immediately without blocking.
Starts a task that processes `fuchsia.ui.keyboard.focus.Controller`.
This method returns immediately without blocking.
Starts a task that processes ` fuchsia . ui . keyboard . focus . Controller ` . This method returns immediately without blocking .
pub fn spawn_focus_controller(&self, mut stream: fidl_focus::ControllerRequestStream) {
        let keyboard3 = self.keyboard3.clone();
        fuchsia_async::Task::spawn(
            async move {
                while let Some(msg) = stream.try_next().await.context(concat!(
                    "keyboard::Service::spawn_focus_controller: ",
                    "error while reading the request stream for ",
                    "fuchsia.ui.keyboard.focus.Controller"
                ))? {
                    match msg {
                        fidl_focus::ControllerRequest::Notify { view_ref, responder, .. } => {
                            let view_ref = keyboard3::ViewRef::new(view_ref);
                            keyboard3.handle_focus_change(view_ref).await;
                            responder.send()?;
                        }
                    }
                }
                Ok(())
            }
            .unwrap_or_else(|e: anyhow::Error| fx_log_err!("couldn't run: {:?}", e)),
        )
        .detach();
    }
pub fn spawn_focus_controller ( & self , mut stream : fidl_focus :: ControllerRequestStream ) { let keyboard3 = self . keyboard3 . clone ( ) ; fuchsia_async :: Task :: spawn ( async move { while let Some ( msg ) = stream . try_next ( ) . await . context ( concat ! ( " " " " " " ) ) ? { match msg { fidl_focus :: ControllerRequest :: Notify { view_ref , responder , .. } => { let view_ref = keyboard3 :: ViewRef :: new ( view_ref ) ; keyboard3 . handle_focus_change ( view_ref ) . await ; responder . send ( ) ? ; } } } Ok ( ( ) ) } . unwrap_or_else ( | e : anyhow :: Error | fx_log_err ! ( " " e ) ) , ) . detach ( ) ; }
Starts a task that processes `fuchsia.ui.keyboard.focus.Controller`.
Starts a task that processes ` fuchsia . ui . keyboard . focus . Controller ` .
&self
stream
fidl_focus::ControllerRequestStream