task

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

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

Task 任务结构体

type TaskQueue

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

TaskQueue 任务队列接口

func New

func New() *TaskQueue

New 创建一个新的任务队列

func (*TaskQueue) AddTask

func (tq *TaskQueue) AddTask(id string)

AddTask 添加任务到队列

func (*TaskQueue) List

func (tq *TaskQueue) List()

List 列出所有任务

func (*TaskQueue) RemoveTask

func (tq *TaskQueue) RemoveTask(id string)

RemoveTask 从队列中移除任务

Jump to

Keyboard shortcuts

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