import dataflow
import adatasks
import time
v = dataflow.DFObject()
@adatasks.task
def show():
print 'show() init + print'
print 'show() v value: ' + str(v.val)
print 'show() done'
@adatasks.task
def set():
print 'set() init + sleep'
time.sleep(2)
print 'set() set v to 3'
v.val = 3
print 'set() done'
adatasks.launch()
adatasks.wait_for_all()