rerun tasks in the same order as components

This commit is contained in:
Evan Almloff committed 2024-02-29 11:43:07 -06:00
1 parent 277e4677e9
commit c7ffdc7b29
9 files changed
+335 -178

No files matched your search

+4
View File
@@ -135,6 +135,10 @@ impl Runtime {
self.tasks.borrow().get(task.0)?.parent
}
pub(crate) fn task_scope(&self, task: Task) -> Option<ScopeId> {
self.tasks.borrow().get(task.0).map(|t| t.scope)
}
pub(crate) fn handle_task_wakeup(&self, id: Task) -> Poll<()> {
debug_assert!(Runtime::current().is_some(), "Must be in a dioxus runtime");