るりまサーチ

最速Rubyリファレンスマニュアル検索!
374件ヒット [1-100件を表示] (0.095秒)
トップページ > クエリ:r[x] > クエリ:Abort[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. fileutils cp_r

検索結果

<< 1 2 3 ... > >>

static VALUE rb_f_abort(int argc, VALUE *argv) (32200.0)

static VALUE rb_thread_abort_exc(VALUE thread) (32200.0)

static VALUE rb_thread_abort_exc_set(VALUE thread, VALUE val) (32200.0)

static VALUE rb_thread_s_abort_exc(void) (32200.0)

static VALUE rb_thread_s_abort_exc_set(VALUE self, VALUE val) (32200.0)

絞り込み条件を変える

VALUE rb_catch(const char *tag, VALUE (*proc)(), VALUE data) (26118.0)

catch と同等の動作を実行します。

...行します。

まず proc に、yield された値と data を渡して実行します。
その途中で tag が throw されたら rb_catch 全体を終了します。

throw が発生した場合はその値を返します。
throw が発生しなかったときは proc の返り値を返し...
...)
{
r
eturn rb_yield(b);
}

static VALUE
foo_catch(VALUE obj)
{
r
eturn rb_catch("footag", foo_yield, INT2FIX(2));
}

static VALUE
foo_abort(VALUE obj)
{
r
eturn rb_throw("footag", Qnil);
}

void
Init_foo(void)
{
VALUE Foo = rb_define_class("Foo", rb_cO...
...bject);
r
b_define_method(Foo, "catch", foo_catch, 0);
r
b_define_method(Foo, "abort", foo_abort, 0);
}...

IRB::Abort (24000.0)

実行中の処理を中断する時に発生させる例外クラスです。

実行中の処理を中断する時に発生させる例外クラスです。

IRB.irb_abort(irb, exception = Abort) (15408.0)

実行中の処理を中断します。必ず例外が発生するため、何も返しません。

...するため、何も返しません。

@param irb 現在の IRB::Irb オブジェクトを指定します。

@param exception 発生させる例外を指定します。指定しなかった場合は
IRB::Abort が発生します。

@raise exception 引数 exception で指定し...

Thread#abort_on_exception -> bool (12220.0)

真の場合、そのスレッドが例外によって終了した時に、インタプリタ 全体を中断させます。false の場合、あるスレッドで起こった例 外は、Thread#join などで検出されない限りそのスレッ ドだけをなにも警告を出さずに終了させます。

...るスレッドで起こった例
外は、Thread#join などで検出されない限りそのスレッ
ドだけをなにも警告を出さずに終了させます。

デフォルトは偽です。c:Thread#exceptionを参照してください。

@param newstate 自身を実行中に例外発生...
...した場合、インタプリタ全体を終了させるかどうかを true か false で指定します。

//emlist[例][ruby]{
thread = Thread.new { sleep 1 }
thread.abort_on_exception # => false
thread.abort_on_exception = true
thread.abort_on_exception # => true
//}...
<< 1 2 3 ... > >>