INNER CODE UNIT · Rust

run_task

denialwm/denial · compositor/flutter-engine/src/lib.rs:672

    pub fn run_task(&self, task: &sys::FlutterTask) -> Result<(), EngineError> {
        let function = self
            .library
            .table
            .RunTask
            .expect("validated Flutter proc table");
        // SAFETY: `task` came from this engine and is read synchronously.
        check_result("RunTask", unsafe { function(self.handle, task) })
    }

    pub fn update_locales(&self, locales: &[EngineLocale]) -> Result<(), EngineError> {
        let flutter_locales = locales
            .iter()
            .map(EngineLocale::as_flutter_locale)
            .collect::<Vec<_>>();
        let mut locale_pointers = flutter_locales
            .iter()
            .map(std::ptr::from_ref)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…