Documentation
¶
Overview ¶
Package resource describes require for object lifecycle management. Both Finalizer and Closer have similar concepts, they both exist so that different types can be used for resource cleanup with different method names as for some things like iterators, the verb close makes more sense than finalize and is more consistent with other types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FinalizerFn ¶
type FinalizerFn func()
FinalizerFn is a function literal that is a finalizer.
func (FinalizerFn) Finalize ¶
func (fn FinalizerFn) Finalize()
Finalize will call the function literal as a finalizer.
Click to show internal directories.
Click to hide internal directories.