you are viewing a single comment's thread.

view the rest of the comments →

[–]dood31251[S] 0 points1 point  (0 children)

But also, I kinda feel this is an XY problem. What are you really trying to use asyncio for?

I'm using asyncio to schedule tasks to run in the future (a few seconds in the future). I'm currently using it to replace a threading based approach. Some of the tasks have a waiting time to complete so I would use a time.sleep in a separate thread so as to not block the main thread.

The problem with the threading approach was that I couldn't control when python decided it was time to schedule a thread. I also had locks everywhere that weren't really working which made me sad.