executor

package
v0.0.300 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

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

func New

func New(ctx context.Context, name string) *Executor

func Newf

func Newf(ctx context.Context, format string, args ...interface{}) *Executor

func (*Executor) CancelAndWait added in v0.0.164

func (exec *Executor) CancelAndWait() error

func (*Executor) Go

func (exec *Executor) Go(f func(context.Context) error)

func (*Executor) GoCancelable

func (exec *Executor) GoCancelable(f func(context.Context) error) func()

func (*Executor) Wait

func (exec *Executor) Wait() error

type ExecutorLike

type ExecutorLike interface {
	Go(func(context.Context) error)
	GoCancelable(func(context.Context) error) func()
	Wait() error
	CancelAndWait() error
}

type Serial

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

func NewSerial

func NewSerial(ctx context.Context) *Serial

func (*Serial) Go

func (s *Serial) Go(f func(context.Context) error)

func (*Serial) GoCancelable

func (s *Serial) GoCancelable(f func(context.Context) error) func()

func (*Serial) Wait

func (s *Serial) Wait() error

Jump to

Keyboard shortcuts

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