lifecycle

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyClosed = errors.New("lifecycle: already closed")

Functions

This section is empty.

Types

type Guard

type Guard struct {
	// contains filtered or unexported fields
}

func New

func New() *Guard

func (*Guard) Close

func (g *Guard) Close() error

func (*Guard) Done

func (g *Guard) Done() <-chan struct{}

func (*Guard) IsClosed

func (g *Guard) IsClosed() bool

Jump to

Keyboard shortcuts

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