itask

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type F

type F func(ctx context.Context) error

type Task

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

func New

func New(ctx context.Context, timeout time.Duration) *Task

func (*Task) Add

func (t *Task) Add(fs ...F)

func (*Task) Run

func (t *Task) Run(n int) error

func (*Task) Stop

func (t *Task) Stop()

Jump to

Keyboard shortcuts

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