Message354356
> 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. |
|
Date |
User |
Action |
Args |
2019-10-10 10:00:52 | asvetlov | set | recipients:
+ asvetlov, vstinner, yselivanov, Evgeny Nizhibitsky |
2019-10-10 10:00:52 | asvetlov | set | messageid: <1570701652.38.0.598253925459.issue38430@roundup.psfhosted.org> |
2019-10-10 10:00:52 | asvetlov | link | issue38430 messages |
2019-10-10 10:00:52 | asvetlov | create | |
|