Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Python async tasks can be cancelled. But, I don't think you can attach must context to the cancel (I think you can pass a text message), so it would seem the argument of what go suffered from would apply.

(I also think there's some wonkiness with and barriers to understanding Python's implementation that I don't think plagues Go to quite the same extent.)



The current meta is to use task groups and bubble up the exception that cancelled the coroutine/task.




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

Search: