summaryrefslogtreecommitdiff
path: root/requirements
diff options
context:
space:
mode:
authorpgjones <philip.graham.jones@googlemail.com>2022-07-23 11:56:12 +0100
committerPhil Jones <philip.graham.jones@googlemail.com>2023-01-24 20:19:57 +0000
commit5ed9c956aaf68a8e2defa9722109aa2c7bcf7ae1 (patch)
treef103622c530a5a4fa121319e4b35d040ebcf80dc /requirements
parent0d4ca6e72c155e30aedd4315e8678ee9cada32b4 (diff)
downloadblinker-5ed9c956aaf68a8e2defa9722109aa2c7bcf7ae1.tar.gz
Add a send_async method to the Signal
This allows for signals to send to coroutine receivers by awaiting them. The _async_wrapper and _sync_wrapper allows for conversion of sync and async receivers as required if defined. If not defined a runtime error is raised. The wrappers are used to avoid any direct tie into asyncio, trio, greenbacks, asgiref, or other specific async implementation.
Diffstat (limited to 'requirements')
-rw-r--r--requirements/tests.in1
-rw-r--r--requirements/tests.txt10
2 files changed, 9 insertions, 2 deletions
diff --git a/requirements/tests.in b/requirements/tests.in
index e079f8a..ee4ba01 100644
--- a/requirements/tests.in
+++ b/requirements/tests.in
@@ -1 +1,2 @@
pytest
+pytest-asyncio
diff --git a/requirements/tests.txt b/requirements/tests.txt
index e53d95b..edcf4fb 100644
--- a/requirements/tests.txt
+++ b/requirements/tests.txt
@@ -1,4 +1,4 @@
-# SHA1:0eaa389e1fdb3a1917c0f987514bd561be5718ee
+# SHA1:738f1ea95febe383951f6eb64bdad13fefc1a97a
#
# This file is autogenerated by pip-compile-multi
# To update, run:
@@ -20,10 +20,16 @@ packaging==23.0
pluggy==1.0.0
# via pytest
pytest==7.2.1
+ # via
+ # -r requirements/tests.in
+ # pytest-asyncio
+pytest-asyncio==0.20.3
# via -r requirements/tests.in
tomli==2.0.1
# via pytest
typing-extensions==4.4.0
- # via importlib-metadata
+ # via
+ # importlib-metadata
+ # pytest-asyncio
zipp==3.11.0
# via importlib-metadata