Registry / utility / facebookgo-limitgroup

facebookgo-limitgroup

JSON →
library0.0.0-20150612190941-6abd8d71ec01gogounverified

Provides a sync.WaitGroup equivalent with a configurable upper bound that blocks Add() when the limit is reached.

go get github.com/facebookgo/limitgroup
INSTALL
IMPORT
SIG · FACEBOOKGO-LIMITGR
F
facebookgo-limitgroup
utilitygov0.0.0-20150612190941-6abd8d71ec01
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

limitgroup
github.com/facebookgo/limitgroup

Creates a limit group with a maximum of 2 concurrent goroutines.

import "github.com/facebookgo/limitgroup" var g limitgroup.LimitGroup g.Limit = 2 g.Add(1) go func() { defer g.Done(); /* work */ }() g.Wait()
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20150612190941-6abd8d71ec01latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
facebookgo-limitgroup — go get facebookgo-limitgroup · libregistry