Method: Thread::Pool::Task#timeout_after
- Defined in:
- lib/thread/pool.rb
#timeout_after(time) ⇒ Object
Timeout the task after the given time.
106 107 108 109 110 111 112 |
# File 'lib/thread/pool.rb', line 106 def timeout_after(time) @timeout = time pool.__send__ :timeout_for, self, time self end |