background

package
v1.1.65 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 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 Runner

type Runner struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...RunnerOption) *Runner

func (*Runner) Go

func (r *Runner) Go(fn func(context.Context), opts ...TaskOption)

func (*Runner) GoWithCtx

func (r *Runner) GoWithCtx(ctx context.Context, fn func(context.Context), opts ...TaskOption)

func (*Runner) Shutdown

func (r *Runner) Shutdown()

type RunnerOption

type RunnerOption func(*Runner)

func WithDefaultTaskTimeout

func WithDefaultTaskTimeout(timeout time.Duration) RunnerOption

type TaskOption

type TaskOption func(*taskOptions)

func WithTimeout

func WithTimeout(timeout time.Duration) TaskOption

Jump to

Keyboard shortcuts

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