103件ヒット
[101-103件を表示]
(0.058秒)
別のキーワード
ライブラリ
- ビルトイン (52)
- fiber (8)
- irb (12)
-
irb
/ extend-command (12) -
minitest
/ spec (1) - thwait (18)
クラス
- Data (6)
- Fiber (12)
-
MiniTest
:: Spec (1) - Thread (30)
- ThreadsWait (18)
モジュール
- IRB (12)
-
IRB
:: ExtendCommandBundle (12) - Process (12)
キーワード
- CurrentContext (12)
-
all
_ waits (12) - define (6)
- exec (12)
-
install
_ extend _ commands (12) - new (6)
-
report
_ on _ exception (9) -
report
_ on _ exception= (9)
検索結果
-
ThreadsWait
. new(*threads) -> ThreadsWait (7.0) -
指定されたスレッドの終了をまつための、スレッド同期オブジェクトをつくります。
...つもしくは複数指定します。
使用例
require 'thwait'
threads = []
5.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}
thall = ThreadsWait.new(*threads)
thall.all_waits{|th|
printf("end %s\n", th.inspect)
}
# 出力例
#=> #<Thread:0x214b...
