module Tasker::Methods

Direct including types

Defined in:

tasker.cr

Instance Method Summary

Instance Method Detail

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

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


[View source]
def cron(line : String, timezone = Time::Location.local, &callback : -> _) : Tasker::CRON #

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


[View source]
def every(span : Time::Span, &callback : -> _) : Tasker::Repeat #

Creates repeating task Schedules the repeat after executing the task


[View source]
def in(span : Time::Span, &callback : -> _) : Tasker::OneShot #

Creates a once off task that occurs in the future


[View source]
def timeout(period : Time::Span, same_thread : Bool = true, &callback : -> _) #

[View source]