safe_stop

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = NewSafeStop()

Functions

func Lock

func Lock(in int)

func Unlock

func Unlock()

func Wait

func Wait()

Types

type SafeStop

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

func NewSafeStop

func NewSafeStop() *SafeStop

func (*SafeStop) Lock

func (this *SafeStop) Lock(in int)

func (*SafeStop) Unlock

func (this *SafeStop) Unlock()

func (*SafeStop) Wait

func (this *SafeStop) Wait()

Jump to

Keyboard shortcuts

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