background

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, backgrounds ...Background) <-chan struct{}

Types

type Background

type Background interface {
	Background(ctx context.Context, doneC chan<- struct{})
}

type BackgroundFunction

type BackgroundFunction func(ctx context.Context)

type Function

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

func NewFunction

func NewFunction(fn BackgroundFunction) Function

func (Function) Background

func (f Function) Background(ctx context.Context, doneC chan<- struct{})

Jump to

Keyboard shortcuts

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