|
|
|
|
|
by zokier
206 days ago
|
|
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 |
|
[1] https://babeljs.io/docs/babel-plugin-transform-async-to-gene...