MCPcopy
hub / github.com/encode/uvicorn / sender

Method sender

uvicorn/middleware/wsgi.py:146–155  ·  view source on GitHub ↗
(self, send: ASGISendCallable)

Source from the content-addressed store, hash-verified

144 raise self.exc_info[0].with_traceback(self.exc_info[1], self.exc_info[2])
145
146 async def sender(self, send: ASGISendCallable) -> None:
147 while True:
148 if self.send_queue:
149 message = self.send_queue.popleft()
150 if message is None:
151 return
152 await send(message)
153 else: # pragma: no cover
154 await self.send_event.wait()
155 self.send_event.clear()
156
157 def start_response(
158 self,

Callers 1

__call__Method · 0.95

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected