]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40782: Change asyncio.AbstractEventLoop.run_in_executor to be a method not a...
authorJames Weaver <james.barrett@bbc.co.uk>
Mon, 17 Aug 2020 14:19:46 +0000 (15:19 +0100)
committerGitHub <noreply@github.com>
Mon, 17 Aug 2020 14:19:46 +0000 (07:19 -0700)
commit29f84294d88ec493c2de9d6e8dbc12fae3778771
tree8be16816deff9c8d24efc8198160e74670833768
parent99c0ee3c893bb99fd98a97084fc386ce2911eb64
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.
Lib/asyncio/events.py
Misc/NEWS.d/next/Library/2020-08-13-08-07-25.bpo-40782.aGZqmB.rst [new file with mode: 0644]