class Scheduler

Defined in:

cryboy/scheduler.cr

Instance Method Summary

Instance Method Detail

def <<(event : Event) : Nil #

[View source]
def call_current : Nil #

[View source]
def clear(type : EventType) : Nil #

[View source]
def schedule(cycles : Int, type : EventType, proc : Proc(Void)) : Nil #

[View source]
def schedule(cycles : Int, type : EventType, &block : -> ) #

[View source]
def speed_mode=(speed : UInt8) : Nil #

Set the current speed to 1x (0) or 2x (1)


[View source]
def tick(cycles : Int) : Nil #

[View source]