るりまサーチ (Ruby 2.1.0)

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

別のキーワード

  1. _builtin now
  2. handle rtld_now
  3. fiddle rtld_now
  4. date now
  5. time now

ライブラリ

クラス

検索結果

ThreadsWait#join_nowait(*threads) -> () (72922.0)

終了を待つスレッドの対象として、threads で指定されたスレッドを指定します。 しかし、実際には終了をまちません。

終了を待つスレッドの対象として、threads で指定されたスレッドを指定します。
しかし、実際には終了をまちません。

@param threads 複数スレッドの終了を待つスレッドに指定されたthreadsを加えます。

require 'thwait'

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

thall = ThreadsWait.new
p thall.threads #=> []
thall.join_nowait(*thr...