Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
5
async
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
14
async
def
main():
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected