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

Included in:
Concurrent::Promises::FactoryMethods
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/concurrent-ruby-1.1.10/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`



52
53
54
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/concurrent-ruby-1.1.10/lib/concurrent-ruby/concurrent/promises.rb', line 52

def default_executor
  :io
end