るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.032秒)
トップページ > モジュール:ObjectSpace[x] > クエリ:gc[x] > クエリ:start[x] > クエリ:undefine_finalizer[x]

別のキーワード

  1. smtp start
  2. net/smtp start
  3. open3 pipeline_start
  4. pop start
  5. http start

ライブラリ

検索結果

ObjectSpace.#undefine_finalizer(obj) -> object (18132.0)

obj に対するファイナライザをすべて解除します。 obj を返します。

...ze"
}
end

def initialize
ObjectSpace
.define_finalizer(self, Sample.callback)
end

def undef
ObjectSpace
.undefine_finalizer(self)
end
end

Sample.new
GC
.start
# => finalize

Sample.new
sample.undef
GC
.start
# ※何も出力されない
//}

@see ObjectSpace.#define_finalizer...