Added explicit environment closing (#129)

This commit is contained in:
Thom Lane authored and Gal Leibovich committed 2018-11-22 14:25:03 +02:00
1 parent 16cdd9a9c1
commit 949d91321a
4 files changed
+26

No files matched your search

+9
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()