asyncio.AbstractEventLoop.run_in_executor should be a method that returns an asyncio Future, not an async method.
This matches the concrete implementations, and the documentation better.
(cherry picked from commit
29f84294d88ec493c2de9d6e8dbc12fae3778771)
Co-authored-by: James Weaver <james.barrett@bbc.co.uk>
def call_soon_threadsafe(self, callback, *args):
raise NotImplementedError
- async def run_in_executor(self, executor, func, *args):
+ def run_in_executor(self, executor, func, *args):
raise NotImplementedError
def set_default_executor(self, executor):
--- /dev/null
+Change the method asyncio.AbstractEventLoop.run_in_executor to not be a coroutine.
\ No newline at end of file