Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorKeyAlreadyExistInMeta = errors.New("key already exist in meta") ErrorKeyDidNotExistInMeta = errors.New("key is not present in meta") )
View Source
var (
ErrorTaskManagerIsHalted = errors.New("task manager is shutting down")
)
Functions ¶
This section is empty.
Types ¶
type TaskManager ¶
type TaskManager interface { GO(ctx context.Context, fn runnable) (taskId string, err error) RestartTasksFromMetaKey(key string) (count int, err error) CancelTaskFromMetaKey(key string) (count int, err error) FindFromMetaKey(key string) (tasks []Task) IsOpen() bool GetTasksCount() int }
func NewTaskManager ¶
func NewTaskManager() TaskManager
Click to show internal directories.
Click to hide internal directories.