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

Method drain

gunicorn/asgi/protocol.py:100–102  ·  view source on GitHub ↗

Wait until transport is writable.

(self)

Source from the content-addressed store, hash-verified

98 self._is_writable_event.set()
99
100 async def drain(self):
101 """Wait until transport is writable."""
102 await self._is_writable_event.wait()
103
104 def pause_reading(self):
105 if not self.read_paused:

Callers 4

write_message_asyncMethod · 0.45
sendMethod · 0.45
_send_pending_dataMethod · 0.45
write_message_asyncMethod · 0.45

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected