class Tasker
- Tasker
- Reference
- Object
Defined in:
tasker.crConstructors
Instance Method Summary
-
#at(time : Time, &callback : -> _) : Tasker::OneShot
Creates a once off task that occurs at a particular date and time
- #cancel(task : Tasker::Task)
- #cancel_all
-
#cron(line : String, timezone = Time::Location.local, &callback : -> _) : Tasker::CRON
Create a repeating event that uses a CRON line to determine the trigger time
-
#every(span : Time::Span, &callback : -> _) : Tasker::Repeat
Creates repeating task Schedules the repeat after executing the task
-
#in(span : Time::Span, &callback : -> _) : Tasker::OneShot
Creates a once off task that occurs in the future
- #no_more_tasks : Channel(Nil)
- #num_schedules
- #schedule(task : Task)
- #size
Constructor Detail
Instance Method Detail
def at(time : Time, &callback : -> _) : Tasker::OneShot
#
Creates a once off task that occurs at a particular date and time
Create a repeating event that uses a CRON line to determine the trigger time
def every(span : Time::Span, &callback : -> _) : Tasker::Repeat
#
Creates repeating task Schedules the repeat after executing the task
def in(span : Time::Span, &callback : -> _) : Tasker::OneShot
#
Creates a once off task that occurs in the future