123456789_123456789_123456789_123456789_123456789_

Class: Concurrent::JavaExecutorService::Job

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
self, Runnable
Inherits: Object
Defined in: lib/concurrent-ruby/concurrent/executor/java_executor_service.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(args, block) ⇒ Job

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/executor/java_executor_service.rb', line 69

def initialize(args, block)
  @args = args
  @block = block
end

Instance Method Details

#run

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/executor/java_executor_service.rb', line 74

def run
  @block.call(*@args)
end