manager

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrManagerClosed = errors.New("manager: closed")

Functions

This section is empty.

Types

type Impl

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

func NewManager

func NewManager() *Impl

func (*Impl) Close

func (s *Impl) Close()

func (*Impl) Done

func (s *Impl) Done() <-chan struct{}

func (*Impl) Shutdown

func (s *Impl) Shutdown()

func (*Impl) Track

func (s *Impl) Track(stp *Stopper, add bool) error

type Manager

type Manager interface {
	Track(*Stopper, bool) error
	Done() <-chan struct{}
	Close()
	Shutdown()
}

type Stopper

type Stopper interface {
	Stop()
}

Jump to

Keyboard shortcuts

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