るりまサーチ

最速Rubyリファレンスマニュアル検索!
6件ヒット [1-6件を表示] (0.129秒)

別のキーワード

  1. drb thread
  2. thread join
  3. thread kill
  4. thread exit
  5. etc sc_thread_cputime

ライブラリ

クラス

検索結果

ThreadsWait#finished? -> bool (21144.0)

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

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

使用例
require 'thwait'

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

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