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
RefCell will quietly panic during a double write, but Mutex locks the current thread. Using RefCell limits the code to single-threaded programs, which I assume most services calling RPC aren't?
The text was updated successfully, but these errors were encountered:
sokorototo
changed the title
Is there any reason why Rc<RefCell> is compared to Arc<Mutex>?
Is there any reason why Rc<RefCell> is used compared to Arc<Mutex>?
Jul 18, 2024
RefCell
will quietly panic during a double write, butMutex
locks the current thread. UsingRefCell
limits the code to single-threaded programs, which I assume most services calling RPC aren't?The text was updated successfully, but these errors were encountered: