Class: Go::GoKernel

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

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ GoKernel

Returns a new instance of GoKernel.



4
5
6
7
8
# File 'lib/go/kernel.rb', line 4

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

Instance Method Details

#executorObject



10
11
12
# File 'lib/go/kernel.rb', line 10

def executor
  @executor
end