This commit is contained in:
Chad 2025-01-07 09:45:55 -08:00 committed by GitHub
commit 4d87b5b048
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,3 +25,13 @@ class AsyncResource(Generic[T], metaclass=abc.ABCMeta):
async def shutdown(self, resource: Optional[T]) -> None:
...
class AsyncShutdownResource(Generic[T], metaclass=abc.ABCMeta):
@abc.abstractmethod
def init(self, *args, **kwargs) -> Optional[T]:
...
async def shutdown(self, resource: Optional[T]) -> None:
...