1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/env python import adatasks @adatasks.task def f(): print f.accept("msg1"), f.select("msg2", "msg3") adatasks.launch() f.msg1('Hello', 'world!') f.msg3("How's it going?") adatasks.wait_for_all()