workplace

package
v0.0.0-...-16f15bb Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Workplace

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

Workplace implements synchronized termination of goroutines. Heavily inspired by gopkg.in/tomb.v2, but better.

func (*Workplace) Close

func (w *Workplace) Close(err error)

func (*Workplace) Closed

func (w *Workplace) Closed() <-chan struct{}

func (*Workplace) Closing

func (w *Workplace) Closing() <-chan struct{}

func (*Workplace) Do

func (w *Workplace) Do(fn func())

func (*Workplace) Err

func (w *Workplace) Err() error

func (*Workplace) Open

func (w *Workplace) Open() bool

func (*Workplace) Wait

func (w *Workplace) Wait() error

Jump to

Keyboard shortcuts

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