Sha256: 092cac3b245e3c727d1c044321de9d3bda8880aecd31748c564694a8375b0500

Contents?: true

Size: 324 Bytes

Versions: 25

Compression:

Stored size: 324 Bytes

Contents

require 'pry-moves'

Thread.current[:name] = 'main'

a = Thread.new do
  Thread.current[:name] = 'a'
  sleep 0.2
  puts 'a'
  binding.pry
  puts 'aaaa'
  sleep 1
  puts 'aaa'
end

b = Thread.new do
  Thread.current[:name] = 'b'
  20223000.times do
    432 * 3232
  end
  puts '2'
  binding.pry
  puts '22'
end

a.join
b.join

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
pry-moves-1.0.15 playground/threads.rb
pry-moves-1.0.14 playground/threads.rb
pry-moves-1.0.13 playground/threads.rb
pry-moves-1.0.12 playground/threads.rb
pry-moves-1.0.11 playground/threads.rb
pry-moves-1.0.10 playground/threads.rb
pry-moves-1.0.9 playground/threads.rb
pry-moves-1.0.8 playground/threads.rb
pry-moves-1.0.7 playground/threads.rb
pry-moves-1.0.6 playground/threads.rb
pry-moves-1.0.5 playground/threads.rb
pry-moves-1.0.4 playground/threads.rb
pry-moves-1.0.3 playground/threads.rb
pry-moves-1.0.2 playground/threads.rb
pry-moves-1.0.1 playground/threads.rb
pry-moves-1.0.0 playground/threads.rb
pry-moves-0.1.13 playground/threads.rb
pry-moves-0.1.12 playground/threads.rb
pry-moves-0.1.10 playground/threads.rb
pry-moves-0.1.9 playground/threads.rb