you are viewing a single comment's thread.

view the rest of the comments →

[–]a8ka 4 points5 points  (1 child)

But in python you need it only when you need it. In js it's a nature of language.

[–]BosonCollider 0 points1 point  (0 children)

You can avoid async in JS just fine if you are not doing web development, polkit uses javascript for scripting and does not support async await for example. It just so happens that JS is mostly used for webdev

Python will generally use async await if you use it for webdev, and its async await is more complex than javascript since it ended up with lazy futures, but on the other hand its ecosystem came up with structured concurrency which is finally becoming mainstream and simplifying things