you are viewing a single comment's thread.

view the rest of the comments →

[–]SoCo 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (2 children)

Maybe I'm too used to the older python multitasking patterns, but I cringe when I see "await" used. They scream poor design to me, in most uses.

[–]fschmidt[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (1 child)

What do you use instead of "await"?

[–]SoCo 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Most of my bigger Python projects started before these features were added, so I'd just make my own event loop using 'multiprocessing' or 'threading' modules and design my own asynchronous handling around that. Now that I've tasted platforms with signals and slots, along with how nice that works with asynchronous queuing and event loops, the await/promise patterns seems kind of a clunky way of doing things.