Module: Concurrent::Promises::FactoryMethods::Configuration

Included in:
Concurrent::Promises::FactoryMethods
Defined in:
lib/concurrent-ruby/concurrent/promises.rb

Instance Method Summary collapse

Instance Method Details

#default_executorExecutor, ...

Returns the executor which is used when none is supplied to a factory method. The method can be overridden in the receivers of ‘include FactoryMethod`.

Returns:

  • (Executor, :io, :fast)

    the executor which is used when none is supplied to a factory method. The method can be overridden in the receivers of ‘include FactoryMethod`



54
55
56
# File 'lib/concurrent-ruby/concurrent/promises.rb', line 54

def default_executor
  :io
end