Thread.pass in Ruby
2019-12-05
It looks like Ruby has something similar to runtime.Schedule() in Go: Thread.pass. But does anything/anybody use it?
It does not appear to be used in Ruby itself outside test code (Ruby 2.6). Maybe it exists to facilitate creating specific concurrency scenarios in tests.
I don't know if people use runtime.Schedule() in Go much either.
Tags: ruby