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 asvetlov
Recipients Evgeny Nizhibitsky, asvetlov, vstinner, yselivanov
Date 2019-10-10.10:00:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570701652.38.0.598253925459.issue38430@roundup.psfhosted.org>
In-reply-to
Content
> Can a Task be used instead of a Future in run_in_executor()?

I don't think that the task is required here. The problem is that run_in_executor is a function that returns asyncio future; that is in turn a wrapper around concurrent future object.

If we convert run_in_executor() into async function we'll get a warning about unawaited coroutine even without asyncio debug mode.
History
Date User Action Args
2019-10-10 10:00:52asvetlovsetrecipients: + asvetlov, vstinner, yselivanov, Evgeny Nizhibitsky
2019-10-10 10:00:52asvetlovsetmessageid: <1570701652.38.0.598253925459.issue38430@roundup.psfhosted.org>
2019-10-10 10:00:52asvetlovlinkissue38430 messages
2019-10-10 10:00:52asvetlovcreate