fn compile_with_progress_sync<F, T>( f: F, hash: &ModuleHash, name: Option<&str>, ) -> Twhere F: FnOnce() -> T,