Class: Reacto::Operations::DelayEach::TaskObserver

Inherits:
Object
  • Object
show all
Defined in:
lib/reacto/operations/delay_each.rb

Instance Method Summary collapse

Constructor Details

#initialize(tracker) ⇒ TaskObserver

Returns a new instance of TaskObserver.



10
11
12
# File 'lib/reacto/operations/delay_each.rb', line 10

def initialize(tracker)
  @tracker = tracker
end

Instance Method Details

#update(time, result, e) ⇒ Object



13
14
15
16
17
# File 'lib/reacto/operations/delay_each.rb', line 13

def update(time, result, e)
  if e
    @tracker.on_error(e) unless e.is_a?(Concurrent::TimeoutError)
  end
end