summaryrefslogtreecommitdiff
path: root/spec/ruby/fixtures/code/concurrent_require_fixture.rb
blob: d4ce73418391980d45938047f4ac22bcbe9eb20d (plain)
1
2
3
4
object = ScratchPad.recorded
thread = Thread.new { object.require(__FILE__) }
Thread.pass until thread.stop?
ScratchPad.record(thread)