diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-01-06 13:04:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-06 13:04:05 (GMT) |
commit | 8670fbe4d2503ab9d3467d859fa504d1dd6c6eec (patch) | |
tree | 72a2ff8d2e3f6777a5c8f9ad56e7e6f7953f7a52 /Lib/asyncio | |
parent | da8be157f4e275c4c32b9199f1466ed7e52f62cf (diff) | |
download | cpython-8670fbe4d2503ab9d3467d859fa504d1dd6c6eec.zip cpython-8670fbe4d2503ab9d3467d859fa504d1dd6c6eec.tar.gz cpython-8670fbe4d2503ab9d3467d859fa504d1dd6c6eec.tar.bz2 |
Reflect 'context' arg in 'AbstractEventLoop.call_*()' methods (GH-30427) (GH-30428)
(cherry picked from commit 3e43fac2503afe219336742b150b3ef6e470686f)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/events.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py index 7abaaca..5823605 100644 --- a/Lib/asyncio/events.py +++ b/Lib/asyncio/events.py @@ -258,13 +258,13 @@ class AbstractEventLoop: """Notification that a TimerHandle has been cancelled.""" raise NotImplementedError - def call_soon(self, callback, *args): + def call_soon(self, callback, *args, context=None): return self.call_later(0, callback, *args) - def call_later(self, delay, callback, *args): + def call_later(self, delay, callback, *args, context=None): raise NotImplementedError - def call_at(self, when, callback, *args): + def call_at(self, when, callback, *args, cotext=None): raise NotImplementedError def time(self): @@ -280,7 +280,7 @@ class AbstractEventLoop: # Methods for interacting with threads. - def call_soon_threadsafe(self, callback, *args): + def call_soon_threadsafe(self, callback, *args, context=None): raise NotImplementedError def run_in_executor(self, executor, func, *args): |