def delayed_(fn): global ndispatched print('\rdispatched: {0:d} jobs'.format(ndispatched), end='', file=sys.stderr) sys.stderr.flush() ndispatched += 1 return delayed(fn)
def delayed_(fn): return delayed(fn)
def delayed_(i, fn): print('\rdispatched: {0:9d} reads'.format(i), end='', file=stderr) stderr.flush() return delayed(fn)
def delayed_(i, fn): return delayed(fn)