12件ヒット
[1-12件を表示]
(0.006秒)
検索結果
-
ThreadsWait
# finished? -> bool (6102.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? #=> true... -
ThreadsWait
:: ErrNoFinishedThread (6002.0) -
nonblock がtrue でかつ、キューが空の時、発生します。
nonblock がtrue でかつ、キューが空の時、発生します。
@see ThreadsWait#next_wait