look out! gotchas of using threads in ruby
Threads (along with fibers and ractors) are all extremely powerful and useful tools for Ruby developers. Yet, they often seem to be surrounded by this aura of mystery, as if they are something for wizards to employ in their magicks and not for mere mortals to make use of.
I recently spoke at EuRuKo 2023 about this topic with the aim of demystifying Ruby threads. You can find the video and slides for my "Look out! Gotchas of using threads in Ruby" talk below.
By documenting common gotchas, and then explaining why they happen and how to fix them, let’s build a better mental model of how the Ruby concurrency primitives work, and hopefully get confident and excited about using them safely 😉
Slide deck: