feat: park idle task refresh and bound delivery to one callback per turn
This commit is contained in:
+2
-2
@@ -1799,8 +1799,8 @@ fn project_tabs(
|
||||
}
|
||||
|
||||
impl UiBridge {
|
||||
pub fn poll_tasks(&self, vm: &mut Vm) -> Result<usize> {
|
||||
self.tasks.poll(vm)
|
||||
pub fn poll_tasks(&self, vm: &mut Vm, limit: usize) -> Result<usize> {
|
||||
self.tasks.poll(vm, limit)
|
||||
}
|
||||
pub fn cancel_tasks(&self, vm: &mut Vm) -> Result<usize> {
|
||||
self.tasks.cancel_all(vm)
|
||||
|
||||
Reference in New Issue
Block a user