MCPcopy
hub / github.com/encode/starlette / __anext__

Method __anext__

tests/test_responses.py:140–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 return self
139
140 async def __anext__(self) -> str:
141 if self._called == 5:
142 raise StopAsyncIteration()
143 self._called += 1
144 return str(self._called)
145
146 response = StreamingResponse(CustomAsyncIterator(), media_type="text/plain")
147 await response(scope, receive, send)

Callers 3

wrapped_receiveMethod · 0.80
dispatchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected