Why on earth do Fibers exist?
For a long time, I couldn’t understand what is the purpose of fibers in ruby. I could understand how to use then, but I didn’t understand when or why should I. This blogpost is a result of small research, I’ve do to find my answers.
Comments
You can see a real-world usage of Fibers in Ruby here:
http://myronmars.to/n/dev-blog/2012/03/building-an-around-hook-using-fibers
https://github.com/rosenfeld/rspec_nested_transactions
Post a comment