es_mutex

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShortTimeOut = 500 * time.Millisecond
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MutexWithTimeout

type MutexWithTimeout interface {
	Do(f func())
}

func New

func New() MutexWithTimeout

func NewWithShortTimeout

func NewWithShortTimeout() MutexWithTimeout

func NewWithTimeout

func NewWithTimeout(timeout time.Duration) MutexWithTimeout

func NewWithTimeoutRetry

func NewWithTimeoutRetry(timeout time.Duration, retries int, timeoutHandler func()) MutexWithTimeout

Jump to

Keyboard shortcuts

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