Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
tasker
v2.1.4
Tasker
CRON
Future
Methods
OneShot
Pipeline
Processor
Repeat
RepeatingTask
Subscription
Task
Timeout
TimeoutHander
Timer
Built with Crystal 1.9.2
2023-10-08 05:37:26 UTC
class
Tasker::Repeat(R)
Tasker::Repeat(R)
Tasker::RepeatingTask(R)
Tasker::Task
Reference
Object
Defined in:
tasker/repeat.cr
Constructors
.new
(period : Time::Span, &block : -> R)
Instance Method Summary
#next_scheduled
: Time | Nil
#schedule
Instance methods inherited from class
Tasker::RepeatingTask(R)
cancel(msg =
"Task canceled"
)
cancel
,
each(&)
each
,
get
get
,
next_scheduled : Time | Nil
next_scheduled
,
resume
resume
,
trigger
trigger
Constructor methods inherited from class
Tasker::RepeatingTask(R)
new(&block : -> R)
new
Instance methods inherited from class
Tasker::Task
<=>(other)
<=>
,
==(other)
==
,
cancel(msg =
"Task canceled"
) : Nil
cancel
,
created : Time
created
,
each(&)
each
,
get
get
,
last_scheduled : Time | Nil
last_scheduled
,
next_epoch
next_epoch
,
next_scheduled : Time | Nil
next_scheduled
,
resume
resume
,
schedule
schedule
,
trigger
trigger
,
trigger_count : Int64
trigger_count
Constructor methods inherited from class
Tasker::Task
new
new
Constructor Detail
def self.
new
(period : Time::Span, &block : -> R)
#
[
View source
]
Instance Method Detail
def
next_scheduled
: Time | Nil
#
[
View source
]
def
schedule
#
[
View source
]