diff options
| author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2022-03-14 11:54:13 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-14 11:54:13 (GMT) |
| commit | 9523c0d84f351a610dc651b234461eb015fa3b82 (patch) | |
| tree | 5f6f6bed4353eb9c149f65ab2dc95db12d378db3 /Lib/asyncio/events.py | |
| parent | 2153daf0a02a598ed5df93f2f224c1ab2a2cca0d (diff) | |
| download | cpython-9523c0d84f351a610dc651b234461eb015fa3b82.zip cpython-9523c0d84f351a610dc651b234461eb015fa3b82.tar.gz cpython-9523c0d84f351a610dc651b234461eb015fa3b82.tar.bz2 | |
bpo-46994: Accept explicit contextvars.Context in asyncio create_task() API (GH-31837)
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 e682a19..0d26ea5 100644 --- a/Lib/asyncio/events.py +++ b/Lib/asyncio/events.py @@ -274,7 +274,7 @@ class AbstractEventLoop: # Method scheduling a coroutine object: create a task. - def create_task(self, coro, *, name=None): + def create_task(self, coro, *, name=None, context=None): raise NotImplementedError # Methods for interacting with threads. |
