るりまサーチ (Ruby 2.6.0)

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

別のキーワード

  1. _builtin next
  2. prime next
  3. date next_day
  4. date next_year
  5. date next_month

検索結果

ThreadsWait#next_wait(nonblock = nil) -> Thread (54667.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...

ThreadsWait::ErrNoFinishedThread (73.0)

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

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

@see ThreadsWait#next_wait