//
pkg.gl
Category
github.com/gromitlee/go-async
pkg
async
async_task
package
1.0.2
Repository:
https://github.com/gromitlee/go-async.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
1
Dependents
6
Files
42 SLOC
#
Constants
RunPhaseFailed
失败.
RunPhaseFinished
完成.
RunPhaseNormal
正常.
StateCanceling
取消中.
StateFailed
失败.
StateFinished
结束.
StateInit
已创建.
StatePause
暂停.
StatePending
排队中.
StateRunning
运行中.
#
Structs
Task
No description provided by the author
#
Interfaces
IReport
IReport 任务上报interface,注意goroutine safe.
ITask
ITask 异步任务interface.
#
Type aliases
ITaskFunc
ITaskFunc 异步任务初始化方法.
RunPhase
RunPhase 任务运行阶段.
State
State 任务状态.