Package: trivial-garbage

Function finalize

Lambda List

finalize (object function)

Details

Pushes a new function to the object's list of finalizers. function should take no arguments. Returns object.

Note: function should not attempt to look at object by closing over it because that will prevent it from being garbage collected.