class IO::Event::Timers::Handle
A handle to a scheduled timer.
def < other
@parameter other [Handle] The other handle to compare with.
Compare the handle with another handle.
def < other @time < other.time end
def > other
@parameter other [Handle] The other handle to compare with.
Compare the handle with another handle.
def > other @time > other.time end
def call(...)
def call(...) @block.call(...) end
def cancel!
def cancel! @block = nil end
def cancelled?
def cancelled? @block.nil? end
def initialize(time, block)
@parameter time [Float] The time at which the block should be called.
Initialize the handle with the given time and block.
def initialize(time, block) @time = time @block = block end