Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ drainer
Method
drainer
Lib/test/test_asyncio/test_streams.py:915–918 ·
view source on GitHub ↗
(stream)
Source
from the content-addressed store, hash-verified
913
drained = 0
914
915
async
def
drainer(stream):
916
nonlocal drained
917
await stream._drain_helper()
918
drained += 1
919
920
async
def
main():
921
loop = asyncio.get_running_loop()
Callers
nothing calls this directly
Calls
1
_drain_helper
Method · 0.80
Tested by
no test coverage detected