From 9b158fe2086b45759691ae6e6df9bf55bf69288b Mon Sep 17 00:00:00 2001 From: Tatsuya Itakura Date: Wed, 20 Dec 2023 11:58:36 +0900 Subject: [PATCH] Remove deprecated auto_terminate option ``` WARN -- Concurrent::CachedThreadPool: [DEPRECATED] Method #auto_terminate= has no effect. Set :auto_terminate option when executor is initialized. ``` --- lib/rukawa/context.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/rukawa/context.rb b/lib/rukawa/context.rb index 43a29dd..fbd251d 100644 --- a/lib/rukawa/context.rb +++ b/lib/rukawa/context.rb @@ -6,7 +6,6 @@ def initialize(concurrency = nil) @concurrency = concurrency || Rukawa.config.concurrency @store = Concurrent::Hash.new @executor = Concurrent::CachedThreadPool.new - @executor.auto_terminate = true @semaphore = Concurrent::Semaphore.new(@concurrency) end