Class: ConcurrentIterable::Config
- Inherits:
-
Object
- Object
- ConcurrentIterable::Config
- Defined in:
- lib/concurrent_iterable/config.rb
Constant Summary collapse
- DEFAULT_CONCURRENCY =
10
Instance Attribute Summary collapse
-
#concurrency ⇒ Object
Returns the value of attribute concurrency.
Instance Method Summary collapse
-
#initialize(concurrency: DEFAULT_CONCURRENCY) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(concurrency: DEFAULT_CONCURRENCY) ⇒ Config
Returns a new instance of Config.
7 8 9 |
# File 'lib/concurrent_iterable/config.rb', line 7 def initialize(concurrency: DEFAULT_CONCURRENCY) @concurrency = concurrency end |
Instance Attribute Details
#concurrency ⇒ Object
Returns the value of attribute concurrency.
5 6 7 |
# File 'lib/concurrent_iterable/config.rb', line 5 def concurrency @concurrency end |