From 00adf99c005445000ddcf2080a0e0fd71e12e386 Mon Sep 17 00:00:00 2001
From: Chad <cpvandehey@gmail.com>
Date: Thu, 26 Oct 2023 14:52:43 -0700
Subject: [PATCH] Update resources.py

---
 src/dependency_injector/resources.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/dependency_injector/resources.py b/src/dependency_injector/resources.py
index b5946cfa..2399079b 100644
--- a/src/dependency_injector/resources.py
+++ b/src/dependency_injector/resources.py
@@ -25,3 +25,13 @@ async def init(self, *args, **kwargs) -> Optional[T]:
 
     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:
+        ...