You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let my_thing = RefCell::new(4);
let ex = smol::LocalExecutor::new();
// Look, ma! A thread-unsafe task!
ex.spawn(async {
*ex.borrow_mut() = 5;
}).detach();
You're not using my_thing so I suppose *ex.borrow_mut() = 5; must be *my_thing.borrow_mut() = 5;
The text was updated successfully, but these errors were encountered:
Here it seems to be a typo:
You're not using
my_thing
so I suppose*ex.borrow_mut() = 5;
must be*my_thing.borrow_mut() = 5;
The text was updated successfully, but these errors were encountered: