runonce

package
v1.9.82 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyRunning = errors.New("program already running")
)

Functions

This section is empty.

Types

type RunOnce

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

func New

func New(name string) *RunOnce

func (*RunOnce) LockFname

func (s *RunOnce) LockFname() string

func (*RunOnce) TryLock added in v1.9.80

func (r *RunOnce) TryLock() error

TryLock #

func (*RunOnce) Unlock

func (r *RunOnce) Unlock() error

Unlock #

Jump to

Keyboard shortcuts

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