Sha256: 6c3c2b308b2e98846ca6b8a5b673b7a49128b8a1f8ab9e630c99901f27d9b4d4
Contents?: true
Size: 549 Bytes
Versions: 149
Compression:
Stored size: 549 Bytes
Contents
require 'concurrent/executor/ruby_thread_pool_executor' module Concurrent # @!macro single_thread_executor # @!macro abstract_executor_service_public_api # @!visibility private class RubySingleThreadExecutor < RubyThreadPoolExecutor # @!macro single_thread_executor_method_initialize def initialize(opts = {}) super( min_threads: 1, max_threads: 1, max_queue: 0, idletime: DEFAULT_THREAD_IDLETIMEOUT, fallback_policy: opts.fetch(:fallback_policy, :discard), ) end end end
Version data entries
149 entries across 144 versions & 32 rubygems