Parent

Files

Class/Module Index [+]

Quicksearch

Concurrent::RubyExecutorService

@!macro abstract_executor_service_public_api @!visibility private

Public Class Methods

new(*args, &block) click to toggle source
# File lib/concurrent/executor/ruby_executor_service.rb, line 11
def initialize(*args, &block)
  super
  @StopEvent    = Event.new
  @StoppedEvent = Event.new
end

Public Instance Methods

kill() click to toggle source
# File lib/concurrent/executor/ruby_executor_service.rb, line 37
def kill
  synchronize do
    break if shutdown?
    self.ns_auto_terminate = false
    stop_event.set
    ns_kill_execution
    stopped_event.set
  end
  true
end
shutdown() click to toggle source
# File lib/concurrent/executor/ruby_executor_service.rb, line 27
def shutdown
  synchronize do
    break unless running?
    self.ns_auto_terminate = false
    stop_event.set
    ns_shutdown_execution
  end
  true
end
wait_for_termination(timeout = nil) click to toggle source
# File lib/concurrent/executor/ruby_executor_service.rb, line 48
def wait_for_termination(timeout = nil)
  stopped_event.wait(timeout)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.