MCPcopy
hub / github.com/benoitc/gunicorn / _close_async

Method _close_async

gunicorn/dirty/client.py:307–316  ·  view source on GitHub ↗

Close the async connection.

(self)

Source from the content-addressed store, hash-verified

305 return DirtyAsyncStreamIterator(self, app_path, action, args, kwargs)
306
307 async def _close_async(self):
308 """Close the async connection."""
309 if self._writer is not None:
310 try:
311 self._writer.close()
312 await self._writer.wait_closed()
313 except Exception:
314 pass
315 self._writer = None
316 self._reader = None
317
318 async def close_async(self):
319 """Close the async connection."""

Callers 3

execute_asyncMethod · 0.95
close_asyncMethod · 0.95
_read_next_chunkMethod · 0.80

Calls 2

closeMethod · 0.45
wait_closedMethod · 0.45

Tested by

no test coverage detected