package
0.0.12
Repository: https://github.com/lthibault/util.git
Documentation: pkg.go.dev

# Functions

AnyWithContext returns a new Any and an associated Context derived from ctx.
BreakerWithContext returns a Breaker and an associated context derived from ctx.
No description provided by the author
Runs f while holding the lock.
Runs f while not holding the lock.

# Structs

Any calls a group of functions in separate goroutines, and checks that at least one function call succeeded.
No description provided by the author
A Breaker calls functions in separate goroutines, returning a nil error if one succeeds.
Join calls a group of functions in separate goroutines and waits until they have all returned.

# Type aliases

No description provided by the author
Ctr is a 32-bit, lock-free counter.
Ctr64 is a 64-bit, lock-free counter.
Flag is a lock-free boolean flag.
FuncGroup calls a group of functions in separate goroutines and waits until they have all returned.