Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoEnableRoutinePool = errors.New("not enable routine pool, please add enableRtePool field to settings") EmptyTaskFunc = errors.New("task func is nil") )
Functions ¶
func CloseDefaultTask ¶ added in v1.2.2
func CloseDefaultTask() error
func SetUpDefaultTask ¶
SetUpDefaultTask 初始化后台任务
Types ¶
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) RawGoroutineCount ¶ added in v1.2.9
RawGoroutineCount 获取当前执行任务的原生协程数
Click to show internal directories.
Click to hide internal directories.