Why Nostr? What is Njump?
2024-05-18 00:16:15
in reply to

Ademan on Nostr: Pretty sure asyncio.run(coroutine) blocks the main thread. So in your loop you’re ...

Pretty sure asyncio.run(coroutine) blocks the main thread. So in your loop you’re running each fetch serially. Check https://docs.python.org/3/library/asyncio-task.html#asyncio.gather

(guy who hasn’t written async python in a few years)
Author Public Key
npub16sz45sngz7k7ha48c9gekuaxc6gntujtynsfukdx6807m6lv7z5sgw378f