Documentation ¶ Index ¶ type Option func WithLogger(l zerolog.Logger) Option func WithPanic(v bool) Option type Runnable type Runner func New(opt ...Option) *Runner func (g *Runner) Run(ctx context.Context, name string, r Runnable) error func (g *Runner) Wait(ctx context.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Option ¶ type Option func(*config) func WithLogger ¶ func WithLogger(l zerolog.Logger) Option func WithPanic ¶ func WithPanic(v bool) Option type Runnable ¶ type Runnable interface { Run(context.Context) error Wait() error } type Runner ¶ type Runner struct { // contains filtered or unexported fields } func New ¶ func New(opt ...Option) *Runner func (*Runner) Run ¶ func (g *Runner) Run(ctx context.Context, name string, r Runnable) error func (*Runner) Wait ¶ func (g *Runner) Wait(ctx context.Context) error Source Files ¶ View all Source files option.gotaskrunner.go Click to show internal directories. Click to hide internal directories.