PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Thread
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: The calling thread will suspend execution and run <em>thr</em>. Does not return until <em>thr</em> exits or until <em>limit</em> seconds have passed. If the time limit expires, <tt>nil</tt> will be returned, otherwise <em>thr</em> is returned. - !ruby/struct:SM::Flow::P body: Any threads not joined will be killed when the main program exits. If <em>thr</em> had previously raised an exception and the <tt>abort_on_exception</tt> and <tt>$DEBUG</tt> flags are not set (so the exception has not yet been processed) it will be processed at this time. - !ruby/struct:SM::Flow::VERB body: " a = Thread.new { print "a"; sleep(10); print "b"; print "c" }\n x = Thread.new { print "x"; Thread.pass; print "y"; print "z" }\n x.join # Let x thread finish, a will be killed on exit.\n" - !ruby/struct:SM::Flow::P body: <em>produces:</em> - !ruby/struct:SM::Flow::VERB body: " axyz\n" - !ruby/struct:SM::Flow::P body: The following example illustrates the <em>limit</em> parameter. - !ruby/struct:SM::Flow::VERB body: " y = Thread.new { 4.times { sleep 0.1; puts 'tick... ' }}\n puts "Waiting" until y.join(0.15)\n" - !ruby/struct:SM::Flow::P body: <em>produces:</em> - !ruby/struct:SM::Flow::VERB body: " tick...\n Waiting\n tick...\n Waitingtick...\n\n tick...\n" full_name: Thread#join is_singleton: false name: join params: | thr.join => thr thr.join(limit) => thr visibility: public
[-] list-c.yaml
[edit]
[-] abort_on_exception-c.yaml
[edit]
[-] start-c.yaml
[edit]
[-] kill-i.yaml
[edit]
[-] group-i.yaml
[edit]
[-] kill%21-i.yaml
[edit]
[-] value-i.yaml
[edit]
[-] stop%3f-i.yaml
[edit]
[-] exit-c.yaml
[edit]
[-] terminate-i.yaml
[edit]
[-] safe_level-i.yaml
[edit]
[-] critical-c.yaml
[edit]
[-] join-i.yaml
[edit]
[-] %5b%5d%3d-i.yaml
[edit]
[-] critical%3d-c.yaml
[edit]
[-] current-c.yaml
[edit]
[-] key%3f-i.yaml
[edit]
[-] raise-i.yaml
[edit]
[-] abort_on_exception-i.yaml
[edit]
[-] run-i.yaml
[edit]
[-] abort_on_exception%3d-c.yaml
[edit]
[-] fork-c.yaml
[edit]
[-] alive%3f-i.yaml
[edit]
[-] priority%3d-i.yaml
[edit]
[-] kill-c.yaml
[edit]
[-] exit-i.yaml
[edit]
[-] pass-c.yaml
[edit]
[-] terminate%21-i.yaml
[edit]
[-] inspect-i.yaml
[edit]
[-] exclusive-c.yaml
[edit]
[-] keys-i.yaml
[edit]
[-] %5b%5d-i.yaml
[edit]
[-] exit%21-i.yaml
[edit]
[-] priority-i.yaml
[edit]
[-] wakeup-i.yaml
[edit]
[+]
..
[-] status-i.yaml
[edit]
[-] new-c.yaml
[edit]
[-] abort_on_exception%3d-i.yaml
[edit]
[-] cdesc-Thread.yaml
[edit]
[-] main-c.yaml
[edit]
[-] stop-c.yaml
[edit]