11件ヒット
[1-11件を表示]
(0.374秒)
ライブラリ
- ビルトイン (11)
検索結果
-
ThreadGroup
. new -> ThreadGroup (21287.0) -
新たな ThreadGroup を生成して返します。
...たな ThreadGroup を生成して返します。
//emlist[例][ruby]{
thread_group = ThreadGroup.new
thread_group.add Thread.new { sleep 0.1; Thread.new { sleep 1 }; sleep 1 }
thread_group.add Thread.new { sleep 2 }
sleep 0.5
thread_group.list # => [#<Thread:0x007fc6f1842d70 sleep>, #<Thread:0x007......fc6f1842c80 sleep>, #<Thread:0x007fc6f080dba8 sleep>]
//}...