[Stackless] Fixed PAR (oops!)
Tom Locke
tom at livelogix.com
Thu Jan 8 09:36:42 CET 2004
Ooops, scrap that - here's the code:
Tom.
def signalEnd(f, chan):
f()
chan.send(1)
def par(*funcs):
taskEnd = stackless.channel()
for f in funcs:
stackless.tasklet(signalEnd)(f, taskEnd)
stackless.schedule()
count = len(funcs)
while count > 0:
taskEnd.receive()
count -= 1
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless
More information about the Stackless
mailing list