るりまサーチ (Ruby 2.1.0)

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

別のキーワード

  1. rake sh
  2. fileutils sh
  3. constants lock_sh
  4. _builtin lock_sh
  5. sync sh

クラス

キーワード

検索結果

ThreadsWait#finished? -> bool (18307.0)

すでに終了したスレッドが存在すれば true を返します。

...すでに終了したスレッドが存在すれば true を返します。

使用例
require 'thwait'

threads = []
3.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}

thall = ThreadsWait.new(*threads)
p thall.finished? #=> false
sleep 3
p thall.finished? #=> t...

ThreadsWait::ErrNoFinishedThread (18007.0)

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

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

@see ThreadsWait#next_wait