Skip to content

Commit

Permalink
Update Demo For Background Download
Browse files Browse the repository at this point in the history
  • Loading branch information
TechShreyash committed Jun 29, 2024
1 parent 1e40968 commit 0dd976a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion demos/background_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ async def main():
await asyncio.sleep(1)

# After the download is finished
print("Downloading Finished")

if downloader.download_success:
print("Download Successful")
else:
print("Download Failed")
raise downloader.download_error


asyncio.run(main())

0 comments on commit 0dd976a

Please sign in to comment.