From 8d8ee9cf489115cd6a5e54b1e637a4968af764ca Mon Sep 17 00:00:00 2001 From: "Joey@macstudio" <4296411@qq.com> Date: Mon, 17 Aug 2026 19:00:39 +0800 Subject: [PATCH] docs: clarify executor kill behavior --- CHANGELOG.md | 4 ++++ .../concurrent/executor/executor_service.rb | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6461846ee..a33f4ee7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Current +concurrent-ruby: + +* (#1072) Clarify that executor `#kill` may interrupt in-progress tasks. + ## Release v1.3.8 (19 July 2026) concurrent-ruby: diff --git a/lib/concurrent-ruby/concurrent/executor/executor_service.rb b/lib/concurrent-ruby/concurrent/executor/executor_service.rb index 7e344919e..e16f024aa 100644 --- a/lib/concurrent-ruby/concurrent/executor/executor_service.rb +++ b/lib/concurrent-ruby/concurrent/executor/executor_service.rb @@ -68,10 +68,9 @@ module Concurrent # @!macro executor_service_method_kill # - # Begin an immediate shutdown. In-progress tasks will be allowed to - # complete but enqueued tasks will be dismissed and no new tasks - # will be accepted. Has no additional effect if the thread pool is - # not running. + # Begin an immediate shutdown. In-progress tasks may be interrupted, + # enqueued tasks will be dismissed, and no new tasks will be accepted. + # Has no additional effect if the thread pool is not running. # @!macro executor_service_method_wait_for_termination #