task

package
v1.3.39 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackgroundRoutine

type BackgroundRoutine interface {
	Post(task Task)
	Invoke(task Task)
	Timer(task Task, intervalValue time.Duration, offsetValue time.Duration)
}

func NewBackgroundRoutine

func NewBackgroundRoutine() BackgroundRoutine

NewBackgroundRoutine new Background routine

type GeneratorTask

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

func NewGeneratorTask

func NewGeneratorTask(generator generator.Generator) *GeneratorTask

func (*GeneratorTask) Result

func (s *GeneratorTask) Result() string

func (*GeneratorTask) Run

func (s *GeneratorTask) Run()

type Task

type Task interface {
	Run()
}

Task 任务对象

Jump to

Keyboard shortcuts

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