closer

package
v0.0.0-...-ff439f2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsClosed

func IsClosed(c Closer) bool

IsClosed returns whether the Closer's underlying channel is closed

Types

type Closer

type Closer interface {
	// Close will instruct the Closer to stop and free its resources
	Close()

	// IsClosed returns a channel that can participate in a select in order
	// to determine whether the Closer has been closed
	IsClosed() <-chan struct{}
}

Closer is a value whose underlying resources must be explicitly closed

Jump to

Keyboard shortcuts

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