Ractor::Wrapper and the Ractor improvements in Ruby 4.0
DRANK
I discuss issues with the original Ractor implementation in Ruby 3.0 and the improvements made in Ruby 4.0. Along the way, I introduce Ractor::Wrapper, a Ruby class that wraps legacy non-Ractor-compatible Ruby objects such as database connections so they can be accessed by multiple Ractors.