class Chronos::RecurringTask

Defined in:

chronos/recurringtask.cr

Constructors

Instance Method Summary

Instance methods inherited from class Chronos::Task

id : String id, next_run : Time next_run, run run

Constructor methods inherited from class Chronos::Task

new(block : -> _) new

Constructor Detail

def self.new(frequency : Symbol, time : NamedTuple, &block) #

[View source]
def self.new(frequency : Symbol, times : Array(NamedTuple), &block) #

[View source]

Instance Method Detail

def beginning_time_components(time : Time) : Hash(Symbol, Int32) #

[View source]
def next_run : Time #

[View source]
def shift_time_by_frequency(time : Time) : Time #

[View source]
def time_components(time : Time) : Hash(Symbol, Int32) #

[View source]