Created
September 20, 2022 16:21
-
-
Save mturoci/a53a79e726007928adc9bcc34b831078 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the current event loop to update UI later. | |
loop = asyncio.get_event_loop() | |
with concurrent.futures.ThreadPoolExecutor() as pool: | |
await q.exec(pool, download, q, loop) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment