taskrunner

package
v0.0.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL