run

package
v0.3.14 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Unlicense Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

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

func (*Group) Add

func (rg *Group) Add(r Runnable)

func (*Group) RunAndWait

func (rg *Group) RunAndWait(ctx context.Context) error

type Runnable

type Runnable interface {
	// Run starts running the component and blocks until the context is canceled, Shutdown is // called or a fatal error is encountered.
	Run(context.Context) error
}

type RunnableFunc added in v0.3.4

type RunnableFunc func(context.Context) error

func (RunnableFunc) Run added in v0.3.4

func (r RunnableFunc) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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