mutex

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MutexUnlock added in v0.11.0

type MutexUnlock func() error

Return type fo the unlock function.

func Lock added in v0.11.0

func Lock() (MutexUnlock, error)

Helps with parallel executions (e.g. with Terraform parallelism=n) ensuring only a single process at a time can interact with AWS and the internal cache – as the BadgerDB requires a filelock: https://github.com/dgraph-io/badger/blob/69926151f6532f2fe97a9b11ee9281519c8ec5e6/dir_unix.go#L45

Jump to

Keyboard shortcuts

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