Comment

Comment by zokier

The whole article is bit of a mess. Like this thing:

> My mutation block contained no awaits. The only awaits happened before acquiring the lock. Therefore:

> * The critical section was atomic relative to the event loop.

> * No other task could interleave inside the mutation.

> * More locks would not increase safety.

That is exactly the same as with e.g. JS. I'm sure there are lot of subtle differences in how Python does async vs others, but the article fails to illuminate any of it; neither the framing story nor the examples really clarify anything

parent zokier 11 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton