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