This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients Evgeny Nizhibitsky, asvetlov, vstinner, yselivanov
Date 2019-11-01.19:08:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572635291.11.0.0346324622384.issue38430@roundup.psfhosted.org>
In-reply-to
Content
> 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?
History
Date User Action Args
2019-11-01 19:08:11yselivanovsetrecipients: + yselivanov, vstinner, asvetlov, Evgeny Nizhibitsky
2019-11-01 19:08:11yselivanovsetmessageid: <1572635291.11.0.0346324622384.issue38430@roundup.psfhosted.org>
2019-11-01 19:08:11yselivanovlinkissue38430 messages
2019-11-01 19:08:10yselivanovcreate