Module: Reacto::Executors
- Defined in:
- lib/reacto/executors.rb
Defined Under Namespace
Classes: CurrentExecutor
Class Method Summary collapse
Class Method Details
.current ⇒ Object
19 20 21 |
# File 'lib/reacto/executors.rb', line 19 def current Concurrent::ImmediateExecutor.new end |
.immediate ⇒ Object
15 16 17 |
# File 'lib/reacto/executors.rb', line 15 def immediate Concurrent::ImmediateExecutor.new end |
.io ⇒ Object
23 24 25 |
# File 'lib/reacto/executors.rb', line 23 def io Concurrent::CachedThreadPool.new end |
.tasks ⇒ Object
27 28 29 |
# File 'lib/reacto/executors.rb', line 27 def tasks Concurrent::FixedThreadPool.new(4) # Number of cores here? end |