MCPcopy Index your code
hub / github.com/github/copilot-sdk / _drain_async

Function _drain_async

python/copilot/copilot_request_handler.py:690–695  ·  view source on GitHub ↗
(stream: AsyncIterator[bytes])

Source from the content-addressed store, hash-verified

688
689
690async def _drain_async(stream: AsyncIterator[bytes]) -> bytes:
691 parts: list[bytes] = []
692 async for chunk in stream:
693 if chunk:
694 parts.append(chunk)
695 return b"".join(parts)
696
697
698async def _stream_response_to_exchange(

Callers 1

_build_httpx_requestFunction · 0.85

Calls 2

appendMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…