git » pymisc » master » tree

[master] / samples / adatasks / sample4.py

#!/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()