Created
September 20, 2022 16:21
-
-
Save mturoci/42b8203ceb69c7854975eca478c87c85 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