stop

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 1 Imported by: 39

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AlreadyDone <-chan struct{}

Functions

This section is empty.

Types

type Group

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

func NewGroup

func NewGroup() *Group

func (*Group) Add

func (cg *Group) Add(toAdd Stoppable)

func (*Group) AddFunc

func (cg *Group) AddFunc(toAddFunc StopperFunc)

func (*Group) Stop

func (cg *Group) Stop() <-chan struct{}

type Stoppable

type Stoppable interface {
	Stop() <-chan struct{}
}

type StopperFunc

type StopperFunc func() <-chan struct{}

Jump to

Keyboard shortcuts

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