diff options
| author | Mattias Andrée <maandree@operamail.com> | 2014-03-07 16:52:26 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2014-03-07 16:52:33 +0100 |
| commit | 42fae9ca63b1662a7cd708abc30cda308087f25f (patch) | |
| tree | 0a8b754fe7b4edb08fcadf88ec2872fe242a6be4 | |
| parent | derp (diff) | |
| download | join-python-42fae9ca63b1662a7cd708abc30cda308087f25f.tar.gz join-python-42fae9ca63b1662a7cd708abc30cda308087f25f.tar.bz2 join-python-42fae9ca63b1662a7cd708abc30cda308087f25f.tar.xz | |
test concurrently
Signed-off-by: Mattias Andrée <maandree@operamail.com>
| -rwxr-xr-x | src/test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test.py b/src/test.py index c1d0725..0dd65dc 100755 --- a/src/test.py +++ b/src/test.py @@ -114,3 +114,12 @@ unjoining(1) unjoining(2) print() + +def c(value): + print(' Not last (but often ordered): %i' % value) + time.sleep(1) + +print('Testing connurrently') +concurrently(lambda : c(0), lambda : c(1), lambda : c(2), lambda : c(3)) +print(' Last (delayed c:a 1 s)') + |
