Class: ConcurrentIterable::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/concurrent_iterable/config.rb

Constant Summary collapse

DEFAULT_CONCURRENCY =
10

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#concurrencyObject

Returns the value of attribute concurrency.



5
6
7
# File 'lib/concurrent_iterable/config.rb', line 5

def concurrency
  @concurrency
end