Skip to content

Commit

Permalink
fix async example
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Oct 30, 2024
1 parent e114e51 commit 0194d22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/async_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ async def async_examples():

# 5. Async Streaming Download
async for chunk in codebox.astream_download("async_file.txt"):
print(chunk.content)
assert isinstance(chunk, bytes)
print(chunk.decode())


if __name__ == "__main__":
Expand Down

0 comments on commit 0194d22

Please sign in to comment.