Skip to content

Commit

Permalink
Fix HTTPAsyncIterator example
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Jan 4, 2025
1 parent 779682d commit d242ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitchio/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class HTTPAsyncIterator(Generic[T]):
streams = await bot.fetch_streams()
# Flatten and return up to 1000 results (max 100 per page) which equates to 10 requests...
streams = [async for stream in bot.fetch_streams(first=100, max_results=1000)]
streams = [stream async for stream in bot.fetch_streams(first=100, max_results=1000)]
# Loop over results until we manually stop...
async for item in bot.fetch_streams(first=100, max_results=1000):
Expand Down

0 comments on commit d242ec0

Please sign in to comment.