Module: Concurrent::Promises::Future::ThrottleIntegration
- Included in:
- Concurrent::Promises::Future
- Defined in:
- lib-edge/concurrent/edge/throttle.rb
Instance Method Summary collapse
-
#rescue_throttled_by(throttle, *args, &block) ⇒ Future
Behaves as #rescue but the it is throttled.
-
#then_throttled_by(throttle, *args, &block) ⇒ Future
Behaves as #then but the it is throttled.
Instance Method Details
#rescue_throttled_by(throttle, *args, &block) ⇒ Future
Behaves as Concurrent::Promises::Future#rescue but the it is throttled.
191 192 193 |
# File 'lib-edge/concurrent/edge/throttle.rb', line 191 def rescue_throttled_by(throttle, *args, &block) throttled_by(throttle) { |trigger| trigger.rescue(*args, &block) } end |
#then_throttled_by(throttle, *args, &block) ⇒ Future
Behaves as Concurrent::Promises::Future#then but the it is throttled.
184 185 186 |
# File 'lib-edge/concurrent/edge/throttle.rb', line 184 def then_throttled_by(throttle, *args, &block) throttled_by(throttle) { |trigger| trigger.then(*args, &block) } end |