class Temporalio::Worker::ThreadPool

def kill

need to be called at all on program exit (e.g. for the global default).
Kill each thread. This should not be called until all workers using this executor are complete. This does not
def kill
  @mutex.synchronize do
    # Kill all workers
    @pool.each(&:kill)
    @pool.clear
    @ready.clear
  end
end