Versions in this module Expand all Collapse all v1 v1.1.0 Apr 24, 2024 v1.0.0 Mar 19, 2024 Changes in this version + type Option interface + func WithCtx(ctx context.Context) Option + func WithName(name string) Option + func WithStart(start func()) Option + func WithStop(stop func()) Option + func WithWg(wg *sync.WaitGroup) Option + type OptionFunc func(option *Options) error + type Options struct + Ctx context.Context + Name string + Start func() + Stop func() + Wg *sync.WaitGroup + type Worker struct + Options *Options + func NewWorker(options ...Option) *Worker + func (w *Worker) Run()