Registry / utility / nebulouslabs-threadgroup

nebulouslabs-threadgroup

JSON →
library0.0.0-20200608151952-38921fbef213gogounverified

Provides utilities for organized clean shutdown and quick shutdown of long-running thread groups.

go get gitlab.com/NebulousLabs/threadgroup
INSTALL
IMPORT
SIG · NEBULOUSLABS-THREA
N
nebulouslabs-threadgroup
utilitygov0.0.0-20200608151952-38921fbef213
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.

threadgroup
gitlab.com/NebulousLabs/threadgroup

Creates a thread group and registers an OnStop handler.

package main import ( "fmt" "gitlab.com/NebulousLabs/threadgroup" ) func main() { tg := threadgroup.New() tg.OnStop("cleanup", func() { fmt.Println("Cleaning up...") }) tg.Stop() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20200608151952-38921fbef213latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
nebulouslabs-threadgroup — go get nebulouslabs-threadgroup · libregistry