diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2022-01-06 12:31:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-06 12:31:32 (GMT) |
commit | 3e43fac2503afe219336742b150b3ef6e470686f (patch) | |
tree | 150fbc169578b541d6f73fe5734a29749d9bad78 /Lib/asyncio | |
parent | 3db762db72cc0da938614b1e414abb1e12ca4094 (diff) | |
download | cpython-3e43fac2503afe219336742b150b3ef6e470686f.zip cpython-3e43fac2503afe219336742b150b3ef6e470686f.tar.gz cpython-3e43fac2503afe219336742b150b3ef6e470686f.tar.bz2 |
Reflect 'context' arg in 'AbstractEventLoop.call_*()' methods (GH-30427)
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 d91fe8d..831c19c 100644 --- a/Lib/asyncio/events.py +++ b/Lib/asyncio/events.py @@ -257,13 +257,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): @@ -279,7 +279,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): |