Method: Conflow::Future#initialize

Defined in:
lib/conflow/future.rb

#initialize(job, result_key = nil) ⇒ Future

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Future.

Parameters:

  • job (Conflow::Job)

    Job which result is promised

  • result_key (String, Symbol) (defaults to: nil)

    key under which promised value exists

See Also:



25
26
27
28
# File 'lib/conflow/future.rb', line 25

def initialize(job, result_key = nil)
  @job = job
  @result_key = result_key
end