module Tasker::Methods
Direct including types
Defined in:
tasker.crInstance Method Summary
-
#at(time : Time, &callback : -> _) : Tasker::OneShot
Creates a once off task that occurs at a particular date and time
-
#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
- #timeout(period : Time::Span, same_thread : Bool = true, &callback : -> _)
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