task

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Async

func Async(fn TFunc, callback func(), params ...any)

Async 异步协程任务投递

func GetCron

func GetCron() *cron.Cron

Types

type Executor

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

Executor TaskExecutor 协程任务

func NewTaskExecutor

func NewTaskExecutor(fn TFunc, params []any, callback func()) *Executor

type TFunc

type TFunc func(...any)

Jump to

Keyboard shortcuts

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