git » pymisc » master » tree

[master] / samples / dataflow / sample3.py

import time
from dataflow import dataflow

@dataflow
def f(x):
	time.sleep(2)
	return x

r1 = f(1)
r2 = f(2)

print r1, r2