Documentation ¶
Overview ¶
Package eventually enables the use of finalizers whose registration can be blocked until an arbitrary point in the program.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Block ¶
func Block() (unblock func())
Block delays finalizer registration until unblock is called.
func SetFinalizer ¶
func SetFinalizer(p, f interface{})
SetFinalizer sets a finalizer f for pointer p.
If registration is currently blocked, SetFinalizer registers it in a background goroutine that first waits for registration to be unblocked.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.