Registry / utility / dfuse-io-shutter

dfuse-io-shutter

JSON →
library1.5.0gogounverified

A Go package that provides a mechanism to gracefully shut down goroutines and services with a signal.

go get github.com/dfuse-io/shutter
INSTALL
IMPORT
SIG · DFUSE-IO-SHUTTER
D
dfuse-io-shutter
utilitygov1.5.0
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.

shutter
github.com/dfuse-io/shutter

Create a shutter, start a goroutine that waits for termination, then shut down.

package main import ( "fmt" "github.com/dfuse-io/shutter" ) func main() { s := shutter.New() go func() { <-s.Terminated() fmt.Println("Shut down") }() s.Shutdown(nil) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.5.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
dfuse-io-shutter — go get dfuse-io-shutter · libregistry