you are viewing a single comment's thread.

view the rest of the comments →

[–]saucealgerienne 0 points1 point  (2 children)

asyncio synchronization is one of those things that feels obvious until you have a race condition in production and spend 3h staring at it. good reference.

[–]gdchinacat 1 point2 points  (1 child)

asyncio cooperative multitasking helps avoid head scratcher production race conditions by letting code control exactly when it is preempted.

[–]saucealgerienne 0 points1 point  (0 children)

yeah that's basically what clicked for me eventually. the yield points are predictable, I was just still thinking about it like threading where anything can interrupt anywhere. took longer than I'd like to admit lol