Class: Concur::GoKernel

Inherits:
Object
  • Object
show all
Defined in:
lib/concur/go.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ GoKernel

Returns a new instance of GoKernel.



10
11
12
13
14
# File 'lib/concur/go.rb', line 10

def initialize(config)
  @config = config
  @executor = Concur::Executor.new_thread_pool_executor(@config.max_threads)
  @config.add_listener(@executor)
end

Instance Method Details

#executorObject



16
17
18
# File 'lib/concur/go.rb', line 16

def executor
  @executor
end