Properly Deal with Timeouts (#7030)

This commit is contained in:
Connor Fitzgerald
2025-02-14 18:19:51 -05:00
committed by GitHub
parent f90f19c7e8
commit 7e119968ce
74 changed files with 475 additions and 358 deletions

View File

@@ -111,7 +111,7 @@ fn main() {
}
global.device_stop_capture(device);
global.device_poll(device, wgt::Maintain::wait()).unwrap();
global.device_poll(device, wgt::PollType::wait()).unwrap();
}
#[cfg(feature = "winit")]
{
@@ -203,7 +203,7 @@ fn main() {
},
Event::LoopExiting => {
log::info!("Closing");
global.device_poll(device, wgt::Maintain::wait()).unwrap();
global.device_poll(device, wgt::PollType::wait()).unwrap();
}
_ => {}
}

View File

@@ -133,7 +133,7 @@ impl Test<'_> {
println!("\t\t\tWaiting...");
global
.device_poll(device_id, wgt::Maintain::wait())
.device_poll(device_id, wgt::PollType::wait())
.unwrap();
for expect in self.expectations {