[issue40844] Alternate ways of running coroutines
Yury Selivanov
report at bugs.python.org
Tue Jun 2 15:59:40 EDT 2020
Yury Selivanov <yselivanov at gmail.com> added the comment:
> I'm suggesting a method on coroutines that runs them without blocking, and will run a callback when it's complete.
And how would that method be implemented? Presumably the event loop would execute the coroutine, but that API is already there, and it's called create_task. We will not be adding a builtin method for this.
You can use Task.add_done_callback() to add a callback.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40844>
_______________________________________
More information about the Python-bugs-list
mailing list