[issue43991] asyncio lock does not get released after task is canceled

Jonathan Schweder report at bugs.python.org
Mon May 3 12:50:29 EDT 2021


Jonathan Schweder <jonathanschweder at gmail.com> added the comment:

a.niederbuehl tasks are free of context, meaning that the task does not know what was done inside it, and by consequence is impossible to know when or not release a lock. This is by design and normally in these cases you need to be aware of the lock, by for example checking if the lock was released before cancelling the task.

----------
nosy: +jaswdr

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43991>
_______________________________________


More information about the Python-bugs-list mailing list