Skip to content

Instantly share code, notes, and snippets.

@nagachika
Last active August 29, 2015 13:56
Show Gist options
  • Save nagachika/9110416 to your computer and use it in GitHub Desktop.
Save nagachika/9110416 to your computer and use it in GitHub Desktop.
p "in bar.rb"
$: << "."
th1 = Thread.start do
p "before require foo"
require "foo"
p "after require foo"
end
until th1.status == "sleep"
Thread.pass
end
p "before require bar"
require "bar"
p "after require bar"
th1.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment