package
1.5.0
Repository: https://github.com/m3db/m3.git
Documentation: pkg.go.dev

# Functions

CloseAll closes all closers and combines any errors.
NewCancellableLifetime returns a new cancellable resource lifetime.
TryClose attempts to close a resource, the resource is expected to implement either Closeable or CloseableResult.

# Variables

ErrNotCloseable is returned when trying to close a resource that does not conform to a closeable interface.

# Structs

CancellableLifetime describes a lifetime for a resource that allows checking out the resource and returning it and once cancelled will not allow any further checkouts.
NoopCloser is a no-op closer.

# Interfaces

Closer is an object that can be closed which returns an error.
Finalizer finalizes a checked resource.
SimpleCloser is an object that can be closed.

# Type aliases

CloserFn is a function literal that is a closer which returns an error.
FinalizerFn is a function literal that is a finalizer.
SimpleCloserFn is a function literal that is a closer.