MCPcopy
hub / github.com/redis/redis-py / aclose

Method aclose

tests/test_asyncio/test_cluster.py:114–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112 await writer.wait_closed()
113
114 async def aclose(self):
115 try:
116 self.task.cancel()
117 await asyncio.wait_for(self.task, timeout=1)
118 self.server.close()
119 await self.server.wait_closed()
120 except asyncio.TimeoutError:
121 pass
122 except asyncio.CancelledError:
123 pass
124
125 async def pipe(
126 self,

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected