perf: wake promptly while cooperative source tasks remain runnable
Verify Tessera GUI / verify (push) Failing after 9m31s

This commit is contained in:
2026-10-23 20:04:42 +08:00
parent e0a7d8169c
commit 7bb59fe06f
4 changed files with 34 additions and 9 deletions
+4
View File
@@ -1812,6 +1812,10 @@ fn project_tabs(
}
impl UiBridge {
pub fn has_cooperative_tasks(&self) -> bool {
self.tasks.has_cooperative_work()
}
pub fn poll_tasks(&self, vm: &mut Vm, limit: usize) -> Result<usize> {
self.tasks.poll(vm, limit)
}