aboutsummaryrefslogtreecommitdiffstats
path: root/src/test.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-07 19:41:48 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-07 19:41:48 +0100
commit433a314b254ef3fe0cf73db6f01057b17b91e0e2 (patch)
treee84cce37f5ccef0dcc8f1ef24fef90e2ba37fec6 /src/test.py
parentinfo: example of ordered and unordered join switches (diff)
downloadjoin-python-433a314b254ef3fe0cf73db6f01057b17b91e0e2.tar.gz
join-python-433a314b254ef3fe0cf73db6f01057b17b91e0e2.tar.bz2
join-python-433a314b254ef3fe0cf73db6f01057b17b91e0e2.tar.xz
add support for signals in concurrently
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/test.py')
-rwxr-xr-xsrc/test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test.py b/src/test.py
index 6b4c8af..2538680 100755
--- a/src/test.py
+++ b/src/test.py
@@ -124,6 +124,12 @@ print(' Last (delayed c:a 1 s)')
print()
+print('Testing connurrently with @signal and @puresignal')
+concurrently(signal(lambda : c(0)), signal(lambda : c(1)), puresignal(lambda : c(2)), puresignal(lambda : c(3)))
+print(' Last (delayed c:a 1 s)')
+print()
+
+
@signal
def fsig1(value):
pass