Project

General

Profile

Actions

Feature #10404

open

Allow individual finalizers to be removed with ObjectSpace.undefine_finalizer

Added by javawizard (Alex Boyd) about 10 years ago. Updated 8 months ago.

Status:
Assigned
Target version:
-
[ruby-core:65809]

Description

Pretty self-explanatory: allow removal of individual define_finalizer blocks without removing all of them as undefine_finalizer currently does.

From an API standpoint, this could be done by having define_finalizer return some sort of unique value (maybe an integer, or perhaps the type is unspecified), and this value could then be passed as undefine_finalizer's second argument to remove just that finalizer.

Actions #1

Updated by hsbt (Hiroshi SHIBATA) 8 months ago

  • Status changed from Open to Assigned
Actions

Also available in: Atom PDF

Like0
Like0