diff options
author | James Weaver <james.barrett@bbc.co.uk> | 2020-08-17 14:19:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 14:19:46 (GMT) |
commit | 29f84294d88ec493c2de9d6e8dbc12fae3778771 (patch) | |
tree | 8be16816deff9c8d24efc8198160e74670833768 /Lib/asyncio/events.py | |
parent | 99c0ee3c893bb99fd98a97084fc386ce2911eb64 (diff) | |
download | cpython-29f84294d88ec493c2de9d6e8dbc12fae3778771.zip cpython-29f84294d88ec493c2de9d6e8dbc12fae3778771.tar.gz cpython-29f84294d88ec493c2de9d6e8dbc12fae3778771.tar.bz2 |
bpo-40782: Change asyncio.AbstractEventLoop.run_in_executor to be a method not a coroutine (GH-21852)
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.
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r-- | Lib/asyncio/events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py index 70017cb..0dce87b 100644 --- a/Lib/asyncio/events.py +++ b/Lib/asyncio/events.py @@ -283,7 +283,7 @@ class AbstractEventLoop: 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): |