stop

package
v0.0.0-...-c9b4a5a Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Inspired by Cockroachdb's stop util.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stop

func Stop()

Types

type Stopper

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

func NewStopper

func NewStopper(callback func()) *Stopper

func (*Stopper) IsStopping

func (s *Stopper) IsStopping() bool

func (*Stopper) ShouldStop

func (s *Stopper) ShouldStop() <-chan struct{}

func (*Stopper) Stop

func (s *Stopper) Stop()

Jump to

Keyboard shortcuts

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