Index
Modules:
taskman
,
taskman/cron
.
API symbols
`/`:
cron: `/`[T: CronRanges](values: set[T]; n: int): set[T]
add:
taskman: add[T: HandlerTypes](scheduler: SchedulerBase[T]; task: TaskBase[T])
AsyncScheduler:
taskman: AsyncScheduler
AsyncTask:
taskman: AsyncTask
AsyncTaskHandler:
taskman: AsyncTaskHandler
at:
taskman: at[T: HandlerTypes](scheduler: SchedulerBase[T]; time: DateTime; handler: T; name = defaultTaskName)
taskman: at[T: HandlerTypes](scheduler: SchedulerBase[T]; interval: TimeInterval; name: string; handler: T)
Cron:
cron: Cron
cron:
cron: cron(minutes, hours, monthDays, months, weekDays: untyped = x): Cron
defaultTaskName:
taskman: defaultTaskName
del:
taskman: del(scheduler: SchedulerBase[HandlerTypes]; task: string)
taskman: del[T: HandlerTypes](scheduler: SchedulerBase[T]; task: TaskBase[T])
ErrorHandler:
taskman: ErrorHandler
every:
taskman: every[T: HandlerTypes](scheduler: SchedulerBase[T]; often: TimeInterval | Cron; name: string; handler: T)
taskman: every[T: HandlerTypes](scheduler: SchedulerBase[T]; cron: Cron; handler: T; name = defaultTaskName)
taskman: every[T: HandlerTypes](scheduler: SchedulerBase[T]; interval: TimeInterval; handler: T; name = defaultTaskName)
everyHour:
cron: everyHour
everyMinute:
cron: everyMinute
everyMonth:
cron: everyMonth
everyMonthDay:
cron: everyMonthDay
everyWeekDay:
cron: everyWeekDay
HandlerTypes:
taskman: HandlerTypes
initCron:
cron: initCron(minutes = everyMinute; hours = everyHour; monthDays = everyMonthDay; months = everyMonth; weekDays = everyWeekDay): Cron
isValid:
cron: isValid(format: Cron): bool
len:
taskman: len(scheduler: SchedulerBase): int
maxYears:
cron: maxYears
newAsyncScheduler:
taskman: newAsyncScheduler(errorHandler: ErrorHandler[AsyncTaskHandler] = defaultErrorHandler[ AsyncTaskHandler]): AsyncScheduler
newScheduler:
taskman: newScheduler(errorHandler: ErrorHandler[TaskHandler] = defaultErrorHandler[ TaskHandler]): Scheduler
newTask:
taskman: newTask[T: HandlerTypes](cron: Cron; handler: T; name = defaultTaskName): TaskBase[ T]
taskman: newTask[T: HandlerTypes](time: DateTime; handler: T; name = defaultTaskName): TaskBase[ T]
taskman: newTask[T: HandlerTypes](interval: TimeInterval; handler: T; name = defaultTaskName): TaskBase[T]
next:
taskman: next(task: TaskBase): Time
cron: next(now: DateTime; format: Cron): DateTime
onlyRun:
taskman: onlyRun(times: int)
removeTask:
taskman: removeTask()
RemoveTaskException:
taskman: RemoveTaskException
running:
taskman: running(tasks: SchedulerBase): bool
Scheduler:
taskman: Scheduler
SchedulerBase:
taskman: SchedulerBase
start:
taskman: start(scheduler: AsyncScheduler; periodicCheck = 0): owned(Future[void])
taskman: start(scheduler: Scheduler; periodicCheck = 0)
Task:
taskman: Task
TaskBase:
taskman: TaskBase
TaskHandler:
taskman: TaskHandler
TooFarAheadCron:
cron: TooFarAheadCron
wait:
taskman: wait[T: HandlerTypes](scheduler: SchedulerBase[T]; interval: TimeInterval; name: string; handler: T)
taskman: wait[T: HandlerTypes](scheduler: SchedulerBase[T]; interval: TimeInterval; handler: T; name = defaultTaskName)