1件ヒット
[1-1件を表示]
(0.014秒)
クラス
- ThreadsWait (1)
検索結果
-
ThreadsWait
# next _ wait(nonblock = nil) -> Thread (9607.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...