All threads / Using symbols is Thread Safe in Rails ?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Using symbols is Thread Safe in Rails ?

Pardha asked in Rails

Hi,

     I read a good article about Thread Safe in Rails. Here is  the [link](https://bearmetal.eu/theden/how-do-i-know-whether-my-rails-app-is-thread-safe-or-not/).
             One thing that I couldn't wrap my head is  his example about Class instance variables. My doubt is how  just using a symbol becomes thread safe that block of code. Please let me know your thoughts.
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 37,344+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.