るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.040秒)
トップページ > バージョン:2.2.0[x] > クエリ:read[x] > クエリ:new[x] > クエリ:Queue[x] > ライブラリ:thwait[x]

別のキーワード

  1. _builtin read
  2. stringio read
  3. io read
  4. csv read
  5. pathname read

クラス

検索結果

ThreadsWait#next_wait(nonblock = nil) -> Thread (9361.0)

指定したスレッドのどれかが終了するまで待ちます。

...、発生します。

@raise ErrNoFinishedThread nonblock がtrue でかつ、キューが空の時、発生します。

#使用例
require 'thwait'

threads = []
2.times {|i|
threads << Thread.new { sleep i }
}

thall = ThreadsWait.new
thall.join_nowait(*threads)
until thall.e...