module

Tasker::Methods

Instance methods

at(time : Time, &callback : -> _) : Tasker::OneShot

Creates a once off task that occurs at a particular date and time

Source
cron(line : String, timezone = Time::Location.local, &callback : -> _) : Tasker::CRON

Create a repeating event that uses a CRON line to determine the trigger time

Source
every(span : Time::Span, &callback : -> _) : Tasker::Repeat

Creates repeating task Schedules the repeat after executing the task

Source
in(span : Time::Span, &callback : -> _) : Tasker::OneShot

Creates a once off task that occurs in the future

Source
timeout(period : Time::Span, &callback : -> _)
Source