lib/timers/timer.rb in timers-4.2.0 vs lib/timers/timer.rb in timers-4.2.1
- old
+ new
@@ -73,9 +73,10 @@
# This timer is no longer valid:
@group.timers.delete self if @group
end
# Reset this timer. Do not call while paused.
+ # @param offset [Numeric] the duration to add to the timer.
def reset(offset = @group.current_offset)
# This logic allows us to minimise the interaction with @group.timers.
# A timer with a handle is always registered with the group.
if @handle
@handle.cancel!