Sha256: 6f8557e27103536fe2b793dc90d0de21bf56840fea046e361cc81bb4ae1e251c
Contents?: true
Size: 682 Bytes
Versions: 30
Compression:
Stored size: 682 Bytes
Contents
if RUBY_PLATFORM == 'java' require_relative 'executor' module Concurrent # @!macro single_thread_executor class JavaSingleThreadExecutor include JavaExecutor include SerialExecutor # Create a new thread pool. # # @see http://docs.oracle.com/javase/tutorial/essential/concurrency/pools.html # @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Executors.html # @see http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html def initialize(opts = {}) @executor = java.util.concurrent.Executors.newSingleThreadExecutor set_shutdown_hook end end end end
Version data entries
30 entries across 30 versions & 1 rubygems