diff options
author | Christian Clauss <cclauss@me.com> | 2021-11-04 21:22:03 +0100 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2022-07-17 06:53:30 -0700 |
commit | 9138d91e125fb4c59ba27446b3f5f532214587ab (patch) | |
tree | 0bc5e3060c4d4327875d38895ee0585297e3024e /blinker/_async.py | |
parent | 0820abdf73acee3b5aa824e49946b3dcaa00813d (diff) | |
download | blinker-feature/send-async.tar.gz |
use async def instead of asyncio.coroutinefeature/send-async
Diffstat (limited to 'blinker/_async.py')
-rw-r--r-- | blinker/_async.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/blinker/_async.py b/blinker/_async.py index 2b530e4..9be304e 100644 --- a/blinker/_async.py +++ b/blinker/_async.py @@ -9,8 +9,7 @@ except AttributeError: schedule = asyncio.ensure_future -@asyncio.coroutine -def _wrap_plain_value(value): +async def _wrap_plain_value(value): """Pass through a coroutine *value* or wrap a plain value.""" if asyncio.iscoroutine(value): value = yield from value @@ -25,4 +24,3 @@ def send_async(self, *sender, **kwargs): send_async.__doc__ = Signal.send_async.__doc__ Signal.send_async = send_async - |