Method: Async::Timeout#adjust
- Defined in:
- lib/async/timeout.rb
#adjust(duration) ⇒ Object
Adjust the timeout by the specified duration.
The duration is relative to the timeout time, e.g. adjusting the timeout by 5 increases the current duration by 5 seconds.
36 37 38 |
# File 'lib/async/timeout.rb', line 36 def adjust(duration) self.reschedule(time + duration) end |