Signature
Yields
MediaItem objects — the same shape
list_media() returns, without the pagination wrapper.
Stopping early
Because pages are fetched lazily, stopping the loop stops the requests:Async
AsyncDreep.list_all_media() is an async iterator over the same items:
Collecting the lot
size_bytes is an int, so this adds rather than concatenating — the API sends it as a
string and the SDK converts it.