class Concurrent::Edge::AnySuccessfulPromise
@!visibility private
Public Class Methods
new(blocked_by_futures, default_executor)
click to toggle source
Calls superclass method
Concurrent::Edge::BlockedPromise.new
# File lib/concurrent/edge/future.rb, line 1359 def initialize(blocked_by_futures, default_executor) blocked_by_futures.all? { |f| f.is_a? Future } or raise ArgumentError, 'accepts only Futures not Events' super(Future.new(self, default_executor), blocked_by_futures, blocked_by_futures.size) end
Private Instance Methods
completable?(countdown, future)
click to toggle source
Calls superclass method
Concurrent::Edge::BlockedPromise#completable?
# File lib/concurrent/edge/future.rb, line 1365 def completable?(countdown, future) future.success? || super(countdown, future) end
on_completable(done_future)
click to toggle source
# File lib/concurrent/edge/future.rb, line 1369 def on_completable(done_future) complete_with done_future.internal_state, false end