class

X::Engine::TimerManager

Inherits Reference / Object

Constants

Log = ::Log.for(self)

Constructors

Instance methods

cancel(timer_ref : UInt64) : Bool

Cancel a scheduled timer

Source
clear

Clear all timers

Source
get_due_timers

Get all timers that are due for delivery

Source
has_pending?

Check if there are any pending timers

Source
schedule_message(sender : UInt64, target : UInt64, message : Value::Context, delay : Time::Span) : UInt64

Schedule a message to be sent after a delay

Source
size

Get count of pending timers

Source
time_until_next

Get the time until the next timer fires (for sleep optimization)

Source