Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (15 sloc) 0.338 kB
import billiard
def f(x):
print("PROCESS %r" % (x, ))
return x ** x
def cb(res):
print("GOT: %r" % (res, ))
def main():
billiard.forking_enable(False)
x = billiard.Pool(2)
x.apply_async(f, (8, ), callback=cb)
x.close()
x.join()
if __name__ == "__main__":
billiard.freeze_support()
main()
Jump to Line
Something went wrong with that request. Please try again.