Hacker News new | past | comments | ask | show | jobs | submit login

The lack of the "nursery" concept for asyncio really sucks. Originally I heard it was coming in 3.8. Right now asyncio has this horrible flaw where it's super easy to have errors within tasks pass silently. It's a pretty large foot gun.



You can code your own wrapper for this.

Like https://github.com/Tygs/ayo

It's not as good as having it in the stdlib, because people can still call ensure_future and not await it, but it's a huge improvement and completly compatible with any asyncio code.


Yup for sure. My complaint is part ergonomics of boilerplate, part this really burned me bad and no stdlib documentation warns you upfront about it. So many hours of headscratching.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: