mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
Added explicit environment closing (#129)
This commit is contained in:
@@ -687,3 +687,12 @@ class GraphManager(object):
|
||||
return self.data_store
|
||||
|
||||
return data_store_creator(param)
|
||||
|
||||
def close(self) -> None:
|
||||
"""
|
||||
Clean up to close environments.
|
||||
|
||||
:return: None
|
||||
"""
|
||||
for env in self.environments:
|
||||
env.close()
|
||||
|
||||
Reference in New Issue
Block a user