Versions in this module Expand all Collapse all v0 v0.0.1 Mar 8, 2021 Changes in this version + type Behavior = map[os.Signal]Termination + type Octopus struct + func New(opts ...Option) *Octopus + func (o *Octopus) Run(ctx context.Context) Termination + type Option func(*Octopus) + func WithBehavior(behavior map[os.Signal]Termination) Option + func WithBlockedTasks(tasks ...Task) Option + func WithLogger(logger logger) Option + func WithTasks(tasks ...Task) Option + type Task func() error + type Termination string + const Canceled + const Unexpected