Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskEngine ¶
TaskEngine define the task engine
func New ¶
func New(ctx context.Context, name string, concurrencyLevel int) *TaskEngine
New create a new task engine
func (*TaskEngine) Schedule ¶
func (engine *TaskEngine) Schedule(task Task) bool
Schedule schedule a task running on engine
Click to show internal directories.
Click to hide internal directories.