You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Operating system: mac
* Ruby implementation: Ruby
* `concurrent-ruby` version: 1.3.4
* `concurrent-ruby-ext` installed: no
* `concurrent-ruby-edge` used: no
The docs for ThreadPoolExecutor#kill suggest that inflight tasks will run to completion.
#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.
This (maybe too) simple test suggests the Executor will kill its internal threads and not allow them to finish.
e=Concurrent::ThreadPoolExecutor.newf=Concurrent::Promises.future_on(e){sleep10;puts"I'm alive!"}sleep11I'm alive!f = Concurrent::Promises.future_on(e) { sleep 10; puts "I'm alive!" }e.kille.shutdown?=>true# future f never completes
The docs for ThreadPoolExecutor#kill suggest that inflight tasks will run to completion.
This (maybe too) simple test suggests the Executor will kill its internal threads and not allow them to finish.
The code for #kill in ruby_executor_service.rb:
ns_kill_execution:
and @pool.each(&:kill) concludes with:
The text was updated successfully, but these errors were encountered: