locks

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package locks provides Named Locks functionality for manging mutexes by string name (e.g., cache keys).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Acquire

func Acquire(lockName string) error

Acquire returns a named lock, and blocks until it is acquired

func Release

func Release(lockName string) error

Release unlocks and releases a named lock

Types

This section is empty.

Jump to

Keyboard shortcuts

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