capnproto / capnproto-rust

Cap'n Proto for Rust
MIT License
2.06k stars 222 forks source link

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

Open sokorototo opened 4 months ago

sokorototo commented 4 months ago

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?