goroutine

package
v1.10.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAborted = errors.New("service aborted")

ErrAborted is returned by the service when it's aborted (doesn't stop on timeout).

Functions

func NewRunner

func NewRunner(r runtime.Runtime, id string, main FuncMain, setters ...runner.Option) runner.Runner

NewRunner creates runner.Runner that runs a service as goroutine.

Types

type FuncMain

type FuncMain func(ctx context.Context, r runtime.Runtime, logOutput io.Writer) error

FuncMain is a entrypoint into the service.

Service should abort and return when ctx is canceled.

Jump to

Keyboard shortcuts

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