task

package
v1.3.119 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 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 {
	AsyncTask(task Task)
	SyncTask(task Task)
	Timer(task Task, intervalValue time.Duration, offsetValue time.Duration)
}

func NewBackgroundRoutine

func NewBackgroundRoutine(capacitySize int) BackgroundRoutine

NewBackgroundRoutine new Background routine

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