class Concurrent::Edge::AnyCompletePromise

@!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 1339
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
# File lib/concurrent/edge/future.rb, line 1345
def completable?(countdown, future)
  true
end
on_completable(done_future) click to toggle source
# File lib/concurrent/edge/future.rb, line 1349
def on_completable(done_future)
  complete_with done_future.internal_state, false
end