1 2 3 4 5 6 7 8 9 10 11 12
import time from dataflow import dataflow @dataflow def f(x): time.sleep(2) return x r1 = f(1) r2 = f(2) print r1, r2