MCPcopy
hub / github.com/aio-libs/aiohttp / iter_chunked

Method iter_chunked

aiohttp/streams.py:51–56  ·  view source on GitHub ↗

Returns an asynchronous iterator that yields chunks of size n. Python-3.5 available for Python 3.5+ only

(self, n)

Source from the content-addressed store, hash-verified

49 return AsyncStreamIterator(self.readline)
50
51 def iter_chunked(self, n):
52 """Returns an asynchronous iterator that yields chunks of size n.
53
54 Python-3.5 available for Python 3.5+ only
55 """
56 return AsyncStreamIterator(lambda: self.read(n))
57
58 def iter_any(self):
59 """Returns an asynchronous iterator that yields slices of data

Calls 2

AsyncStreamIteratorClass · 0.85
readMethod · 0.45