Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
chronos
v0.2.0
Chronos
OneTimeTask
PeriodicTask
RecurringTask
Task
Generated using Crystal 1.14.0
2024-11-26 10:37:43 UTC
class
Chronos::
PeriodicTask
Chronos::PeriodicTask
Chronos::Task
Reference
Object
Defined in:
chronos/periodictask.cr
Constructors
.new
(period : Time::Span, first_run =
nil
, &block)
Instance Method Summary
#next_run
: Time
#run
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
(period : Time::Span, first_run =
nil
, &block)
#
[
View source
]
Instance Method Detail
def
next_run
: Time
#
[
View source
]
def
run
#
[
View source
]