class Concurrent::Promises::AbstractPromise
@private
@abstract
def default_executor
def default_executor future.default_executor end
def delayed_because
def delayed_because nil end
def evaluate_to(*args, block)
-
(Future)
-
def evaluate_to(*args, block) resolve_with Fulfilled.new(block.call(*args)) rescue Exception => error resolve_with Rejected.new(error) raise error unless error.is_a?(StandardError) end
def future
def future @Future end
def initialize(future)
def initialize(future) super() @Future = future end
def resolve_with(new_state, raise_on_reassign = true)
def resolve_with(new_state, raise_on_reassign = true) @Future.resolve_with(new_state, raise_on_reassign) end
def state
def state future.state end
def to_s
def to_s format '%s %s>', super[0..-2], @Future end
def touch
def touch end