Yury Selivanov <yseliva...@gmail.com> added the comment:

> The change is slightly not backward compatible but

Yeah, that's my main problem with converting `loop.run_in_executor()` to a 
coroutine. When I attempted doing that I discovered that there's code that 
expects the method to return a Future, and so expects it have the `cancel()` 
method.

If we convert it to a coroutine a lot of code will break, which might be OK if 
it's really necessary. Is it though? Can we return a special Future subclass 
that complains if it's not awaited?  Would that fix the problem?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38430>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to