Fix borrowmut error in nested spawns

This commit is contained in:
Jonathan Kelley committed 2024-01-19 22:01:21 -08:00
1 parent bcca307a9a
commit 728a26a2cc
5 files changed
+37 -26

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ pub struct Runtime {
pub(crate) rendering: Cell<bool>,
/// Tasks created with cx.spawn
pub(crate) tasks: RefCell<slab::Slab<LocalTask>>,
pub(crate) tasks: RefCell<slab::Slab<Rc<LocalTask>>>,
/// Queued tasks that are waiting to be polled
pub(crate) queued_tasks: Rc<RefCell<VecDeque<Task>>>,