MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / gen

Function gen

python/examples/body.py:5–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5async def gen():
6 for i in range(10):
7 await asyncio.sleep(0.1)
8 # bytes chunk
9 yield bytes(f"Hello {i}\n", "utf-8")
10 # str chunk
11 # yield str("Hello {}\n".format(i)).encode("utf-8")
12
13
14async def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected