class Async::WorkerPool::Promise
def initialize(work)
Create a new promise.
def initialize(work) @work = work @state = :pending @value = nil @guard = ::Mutex.new @condition = ::ConditionVariable.new @thread = nil end
def initialize(work) @work = work @state = :pending @value = nil @guard = ::Mutex.new @condition = ::ConditionVariable.new @thread = nil end