async_component

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IQueue

type IQueue interface {
	// AddTask 向队列中添加一个任务
	AddTask(ctx context.Context, user, group string, taskID, taskType uint32) error
	// DelTask 从队列中删除一个任务(直接删除,只有正确删除指定任务才不返回error)
	DelTask(ctx context.Context, taskID uint32) error
	// PopOne 从队列中获取一个任务(出队列)
	PopOne(ctx context.Context, taskTypes []uint32) (uint32, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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