``` [] ~/projects/jruby $ rvm ruby-2.6.5 do ruby -e 't = Thread.new { puts 1; begin; sleep; ensure; puts 2; end }; Thread.pass until t.status == "sleep"; p t; exit' 1 # 2 [] ~/projects/jruby $ ruby -e 't = Thread.new { puts 1; begin; sleep; ensure; puts 2; end }; Thread.pass until t.status == "sleep"; p t; exit' 1 # ```