avoiding "can't yield from root fiber" error
When using em-synchrony, to avoid unexpected "can't yield from root fiber" error, wrap the block in a new fiber:
Fiber.new {
some_code
}.resume
Written by Rob McKinnon
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#