class Timer

Overview

TODO Write documentation for TimeUtils

Defined in:

time_utils.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(at : Time | Time::Span, recurring : Bool = false, &block : Timer -> _) #

[View source]

Class Method Detail

def self.run(at : Time | Time::Span, recurring : Bool = false, &block : Timer -> _) #

[View source]

Instance Method Detail

def at : Time | Time::Span #

[View source]
def at=(at : Time | Time::Span) #

[View source]
def block : Proc(Timer, Nil) #

[View source]
def block=(block : Proc(Timer, Nil)) #

[View source]
def cancel #

[View source]
def cancelled : Bool #

[View source]
def cancelled=(cancelled : Bool) #

[View source]
def cancelled? : Bool #

[View source]
def recurring : Bool #

[View source]
def recurring=(recurring : Bool) #

[View source]
def recurring? : Bool #

[View source]
def run #

[View source]
def running : Bool #

[View source]
def running=(running : Bool) #

[View source]
def running? : Bool #

[View source]
def stop #

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


[View source]