capnproto-rust icon indicating copy to clipboard operation
capnproto-rust copied to clipboard

Is there any reason why Rc<RefCell> is used compared to Arc<Mutex>?

Open sokorototo opened this issue 1 year ago • 0 comments

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?

sokorototo avatar Jul 18 '24 08:07 sokorototo