1
0
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:
Thom Lane
2018-11-22 04:25:03 -08:00
committed by Gal Leibovich
parent 16cdd9a9c1
commit 949d91321a
4 changed files with 26 additions and 0 deletions

View File

@@ -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()