Re:Python has had async for 10 years – why isn't it more pop...
by gcharbonnier on Thursday September 04, 2025 @02:39PM
(#45130703)
Nothing and that’s the problem because even though you can do it, your event loop will block until foo has finished executing, meaning that in this thread no other coroutine will be executed in the meantime (an event loop runs in its own thread. Most of the time there is only the main thread thus a single event loop). This defeats the purpose of concurrent programming.
Sorry for the possibly naive question. If I need to call a synchronous function from an async function, why can't I just call await on the async argument?