locks

package
v1.2.14-prerelease02 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutex

type Mutex interface {
	Lock(context.Context) error
	Unlock()
}

Mutex accepts a context in its Lock method. It blocks the goroutine until either the lock is acquired or the context is closed.

func NewMutex

func NewMutex() Mutex

Jump to

Keyboard shortcuts

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