[Core] Add shutdown() method to ExecutorBase (#4349)

This commit is contained in:
Nick Hill
2024-04-25 16:32:48 -07:00
committed by GitHub
parent b6dcb4d442
commit 15e7c675b0
2 changed files with 13 additions and 0 deletions
+7
View File
@@ -95,6 +95,13 @@ class ExecutorBase(ABC):
exception."""
raise NotImplementedError
def shutdown(self) -> None:
"""Shutdown the executor."""
return
def __del__(self):
self.shutdown()
class ExecutorAsyncBase(ExecutorBase):