package
0.6.0
Repository: https://github.com/axiomhq/pkg.git
Documentation: pkg.go.dev

# Functions

New creates a new WorkGate.

# Variables

ErrGateClosed is returned from WorkGate.{Try,}Do() if the gate has been closed.
ErrGateFull is returned from WorkGate.TryDo if the gate is full.

# Structs

WorkGate can ensure a maximum of N concurrent tasks are ever ongoing.