Spackler enables graceful application termination. It allows running tasks to complete while preventing new tasks from starting. Spackler accomplishes this by managing goroutines and exiting timer loops. This can be of value, for example, in preserving data integrity.
Other features:
- Stop signal available for custom use such as exiting loops
- Custom registration for system signals (
SIGINT
,SIGIO
, etc.) - Programmatic termination
go get github.com/Hearst-DD/spackler
And import:
import "github.com/Hearst-DD/spackler"
This package is named for Carl Spackler, the fictional golf caddy and greenskeeper portrayed by actor Bill Murray in the film, 'Caddyshack', who is entrusted with the graceful termination of gophers.