Method: Async::Timeout#duration=

Defined in:
lib/async/timeout.rb

#duration=(value) ⇒ Object

Update the duration of the timeout.

The duration is relative to the current time, e.g. setting the duration to 5 means the timeout will occur in 5 seconds from now.



26
27
28
# File 'lib/async/timeout.rb', line 26

def duration=(value)
  self.reschedule(@timers.now + value)
end