MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / to_aiter

Function to_aiter

tests/test_streaming.py:359–361  ·  view source on GitHub ↗
(iter: Iterator[bytes])

Source from the content-addressed store, hash-verified

357 assert isinstance(sync_stream, Stream)
358
359
360async def to_aiter(iter: Iterator[bytes]) -> AsyncIterator[bytes]:
361 for chunk in iter:
362 yield chunk
363
364

Callers 2

make_event_iteratorFunction · 0.70
make_stream_iteratorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected