gptkbp:instance_of
|
gptkb:class
gptkb:voter_registration
gptkb:API
gptkb:item
|
gptkbp:associated_with
|
gptkb:Garbage_Collection
gptkb:Weak_Ref
|
gptkbp:available_in
|
gptkb:Java_Script_ES2021
|
gptkbp:callback
|
gptkb:Finalization_Registry_Callback
finalization Callback
|
gptkbp:callback_execution
|
After garbage collection
|
gptkbp:callback_execution_context
|
Global context
|
gptkbp:callback_execution_order
|
Non-deterministic
|
gptkbp:callback_execution_timing
|
Asynchronously after GC
|
gptkbp:callback_invocation
|
Once per key
|
gptkbp:callback_invocation_condition
|
When the object is collected
|
gptkbp:callback_parameter
|
gptkb:Key
held value
held Value
|
gptkbp:callback_type
|
gptkb:Mathematics
|
gptkbp:constructor
|
Finalization Registry()
Finalization Registry(callback)
|
gptkbp:error_handling
|
No error on unregistering non-registered key
|
gptkbp:events
|
garbage collection
|
https://www.w3.org/2000/01/rdf-schema#label
|
Finalization Registry
|
gptkbp:introduced_in
|
gptkb:ECMAScript_2021
|
gptkbp:language
|
gptkb:Java_Script
|
gptkbp:memory_leak_prevention
|
Helps prevent memory leaks
|
gptkbp:orbital_period
|
gptkb:Key
held Value
|
gptkbp:performance
|
Minimal overhead
|
gptkbp:purpose
|
Allows registration of a callback to be invoked after an object is garbage collected.
To register a callback to be invoked after an object is garbage collected.
|
gptkbp:related_to
|
gptkb:Weak_Map
gptkb:Weak_Set
gptkb:Weak_Ref
|
gptkbp:technique
|
gptkb:voter_registration
cleanup Some()
register()
unregister()
cleanup Some
unregister
|
gptkbp:usage
|
Memory management
|
gptkbp:use_case
|
Memory optimization
Asynchronous resource management
Custom finalization logic
Deferred cleanup tasks
Event handling after GC
Finalization of objects
Garbage collection notifications
Resource cleanup
Tracking object lifecycle
Weak reference management
Weak reference tracking
|
gptkbp:bfsParent
|
gptkb:ECMA-262
gptkb:ECMAScript_2015
gptkb:V8_engine
gptkb:ECMAScript
gptkb:ECMAScript_2022
|
gptkbp:bfsLayer
|
5
|