Add close method to shutdown threadpool
There are contexts where people need to ensure a threadpool shuts down. Add a close method that can be used to ensure releasing of resources. Change-Id: I70d55a203c3104f70e3837db9601a1ebfe6fbd1f
This commit is contained in:
parent
a30cc754f2
commit
ac1935b182
|
@ -367,3 +367,7 @@ class Connection(six.with_metaclass(_meta.ConnectionMeta,
|
|||
return self.session.get_token()
|
||||
except keystoneauth1.exceptions.ClientException as e:
|
||||
raise exceptions.raise_from_response(e.response)
|
||||
|
||||
def close(self):
|
||||
"""Release any resources held open."""
|
||||
self.task_manager.stop()
|
||||
|
|
Loading…
Reference in New Issue