class Concurrent::Edge::BlockedTaskPromise

@abstract @!visibility private

Public Class Methods

new(blocked_by_future, default_executor, executor, &task) click to toggle source
Calls superclass method Concurrent::Edge::BlockedPromise.new
# File lib/concurrent/edge/future.rb, line 1080
def initialize(blocked_by_future, default_executor, executor, &task)
  raise ArgumentError, 'no block given' unless block_given?
  super Future.new(self, default_executor), blocked_by_future, 1
  @Executor = executor
  @Task     = task
end

Public Instance Methods

executor() click to toggle source
# File lib/concurrent/edge/future.rb, line 1087
def executor
  @Executor
end