Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reference ¶
type Reference struct {
// contains filtered or unexported fields
}
Reference is an open reference for some resource.
type References ¶
type References []*Reference
References is a helper to aggregate a group of references.
func (References) Close ¶
func (refs References) Close() error
Close makes References an io.Closer. It is safe to call multiple times.
func (References) Release ¶
func (refs References) Release()
Release releases all of the references. It is safe to call multiple times.
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource keeps track of references and has some compile time debug hooks to help diagnose leaks. It keeps track of if it is open or not and allows blocking until all references are released.
Click to show internal directories.
Click to hide internal directories.