We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e8e03f commit a5ff9d2Copy full SHA for a5ff9d2
spec/concurrent/executor/thread_pool_executor_shared.rb
@@ -485,6 +485,14 @@
485
trigger = Concurrent::Event.new
486
initial = Thread.list.length
487
488
+ executor = described_class.new(
489
+ min_threads: 1,
490
+ max_threads: 1,
491
+ idletime: idletime,
492
+ max_queue: 1,
493
+ fallback_policy: :caller_runs
494
+ )
495
+
496
# Post several tasks to the executor. Has to be a new thread,
497
# because it will start blocking once the queue fills up.
498
Thread.new do
0 commit comments