Class: Go::GoKernel
- Inherits:
-
Object
- Object
- Go::GoKernel
- Defined in:
- lib/go/kernel.rb
Instance Method Summary collapse
- #executor ⇒ Object
-
#initialize(config) ⇒ GoKernel
constructor
A new instance of GoKernel.
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
#executor ⇒ Object
10 11 12 |
# File 'lib/go/kernel.rb', line 10 def executor @executor end |