lock

package
v0.0.0-...-c50b06b Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lock

func Lock(block bool) (bool, error)

Lock redctl, blocking indefinitely if desired Returns whether lock was taken, error if any

func Locked

func Locked() bool

Locked checks to see if locked

func TryLock

func TryLock() (bool, error)

TryLock attempts lock if available, otherwise returns

func Unlock

func Unlock() error

Unlock redctl

Types

This section is empty.

Jump to

Keyboard shortcuts

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