[issue37281] asyncio Task._fut_waiter done callback

Andrew Svetlov report at bugs.python.org
Fri Jun 14 06:44:26 EDT 2019


Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:

1. Task._fut_waiter is a private API, please avoid it
2. Task class is derived from Future, thus it HAS add_done_callback() method. The other question is that from my experience if the application-level code uses add_done_callback() the design is not perfect and error-prone. add_done_callback() is useful for relatively low-level libraries.

----------

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


More information about the Python-bugs-list mailing list