mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-06-14 10:33:12 +03:00
Merge 00adf99c00
into 46646b1acf
This commit is contained in:
commit
4d87b5b048
|
@ -25,3 +25,13 @@ class AsyncResource(Generic[T], metaclass=abc.ABCMeta):
|
||||||
|
|
||||||
async def shutdown(self, resource: Optional[T]) -> None:
|
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:
|
||||||
|
...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user