class

Timer

Inherits Reference < Object

TODO: Write documentation for TimeUtils

Constructors

new(at : Time | Time::Span, recurring : Bool = false, &block : Timer -> _)
Source

Class methods

run(at : Time | Time::Span, recurring : Bool = false, &block : Timer -> _)
Source

Instance methods

at=(at : Time | Time::Span)
Source
block
Source
block=(block : Proc(Timer, Nil))
Source
cancel
Source
cancelled
Source
cancelled=(cancelled : Bool)
Source
cancelled?
Source
recurring
Source
recurring=(recurring : Bool)
Source
recurring?
Source
running
Source
running=(running : Bool)
Source
running?
Source
stop

THe currently running Fiber is NOT stopped! The Proc will not be called anymore

Source