110件ヒット
[101-110件を表示]
(0.028秒)
種類
- インスタンスメソッド (55)
- モジュール関数 (33)
- 特異メソッド (11)
- クラス (11)
クラス
- SystemExit (33)
- Thread (33)
モジュール
- Kernel (33)
検索結果
-
Thread
# terminate -> self (8.0) -
スレッドの実行を終了させます。終了時に ensure 節が実行されます。
...であるか最後のスレッドである場合は、プロセスを Kernel.#exit(0)
により終了します。
Kernel.#exit と違い例外 SystemExit を発生しません。
th1 = Thread.new do
begin
sleep 10
ensure
p "this will be displayed"
end
end
sleep 0.1...