るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.030秒)
トップページ > クラス:ThreadGroup[x] > クエリ:Thread.new[x] > クエリ:enclose[x] > 種類:特異メソッド[x]

別のキーワード

  1. argf.class lines
  2. argf.class each
  3. argf.class each_line
  4. argf.class to_a
  5. argf.class gets

ライブラリ

検索結果

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>]
//}...