98 | | irb(main):014:0> t = Thread.new {move(q, 1000, 00)} |
99 | | => #<Thread:0xb7747ff4 run> |
100 | | irb(main):015:0> t |
101 | | => #<Thread:0xb7795948 sleep> |
102 | | irb(main):016:0> t |
103 | | => #<Thread:0xb7795948 dead> |
104 | | irb(main):017:0> t.value |
| 98 | irb(main):023:0> t = Thread.new {move(q, 1000, 0)} |
| 99 | => #<Thread:0xb7755974 run> |
| 100 | irb(main):024:0> t.status |
| 101 | => "sleep" |
| 102 | irb(main):025:0> t.status |
| 103 | => "sleep" |
| 104 | irb(main):026:0> t.status # terminated normally |
| 105 | => false |
| 106 | irb(main):027:0> t.value # move returns nil |