D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Thread
/
Filename :
list-c.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns an array of <tt>Thread</tt> objects for all threads that are either runnable or stopped. - !ruby/struct:SM::Flow::VERB body: " Thread.new { sleep(200) }\n Thread.new { 1000000.times {|i| i*i } }\n Thread.new { Thread.stop }\n Thread.list.each {|t| p t}\n" - !ruby/struct:SM::Flow::P body: <em>produces:</em> - !ruby/struct:SM::Flow::VERB body: " #<Thread:0x401b3e84 sleep>\n #<Thread:0x401b3f38 run>\n #<Thread:0x401b3fb0 sleep>\n #<Thread:0x401bdf4c run>\n" full_name: Thread::list is_singleton: true name: list params: | Thread.list => array visibility: public