Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/io/event/timers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ def > other
def call(...)
@block.call(...)
end

# Reset the timer to a new time.
#
# @parameter time [Float] The new time at which the block should be called.
def reset(time)
@time = time
end

# Cancel the timer.
def cancel!
Expand Down
Loading