class Chronos

Overview

TODO Write documentation for Chronos

Defined in:

chronos.cr
chronos/onetimetask.cr
chronos/periodictask.cr
chronos/recurringtask.cr
chronos/task.cr

Constant Summary

LOG_FORMATTER = Log::Formatter.new do |entry, io| (((((io << (entry.timestamp.to_s("%Y/%m/%d %T %:z"))) << " [") << entry.source) << "/") << Process.pid) << "] " ((io << entry.severity) << " ") << entry.message end
VERSION = "0.1.1"

Constructors

Instance Method Summary

Constructor Detail

def self.new(location : Time::Location = Time::Location.local) #

[View source]

Instance Method Detail

def at(run_time : Time, &block) : Task #

[View source]
def delete_at(id : String) : Bool #

[View source]
def every(period : Time::Span, start_time : Time, &block) : Task #

[View source]
def every(period : Symbol, time : NamedTuple, &block) : Task #

[View source]
def every(period : Time::Span, &block) : Task #

[View source]
def in(span : Time::Span, &block) : Task #

[View source]
def location : Time::Location #

[View source]
def location=(location : Time::Location) #

[View source]
def log : Log #

[View source]
def log=(log : Log) #

[View source]
def run : Nil #

[View source]
def running : Bool #

[View source]
def tasks : Array(Task) #

[View source]