closer

package
v0.0.0-...-303e327 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(obj interface{})

Close release all resources holded by the object.

Types

type Closer

type Closer interface {
	// Close release all resources holded by the object.
	Close()
	// Done returns a channel that's closed when object was closed.
	Done() <-chan struct{}
}

Closer is the interface for object that can release its resources.

func New

func New() Closer

New returns a closer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL