
Asyncio: A library with too many sharp corners
chubot
created: July 26, 2025, 11:35 p.m. | updated: July 27, 2025, 7:15 a.m.
One of the headliner features of Python 3.4 (released in 2014) was a new library in the standard library: asyncio , provisionally introduced for feedback as an import of the external tulip library.
But asyncio has so many sharp corners and design issues it is far too difficult to use, bordering on being fundamentally broken.
Consumer task 2 sits there idly because the producer can't do anything until the first consumer task has finished.
Consumer task 2 sits there idly because the producer can't do anything until the first consumer task has finished.
Take this example:import asyncio from functools import partial async def coro(): await asyncio.sleep(5) print("as if i would be cancelled!")
5 days, 6 hours ago: Hacker News: Front Page