示例#1
0
def test4():
    print ("\ntest 4: imap_unordered with 2 arguments")
    pool = Pool()
    it = pool.imap_unordered(g, list(range(10)), list(range(20, 30)))
    print ("->", sum(it))
示例#2
0
def test2():
    print ("\ntest 2: imap_unordered")
    pool = Pool()
    it = pool.imap_unordered(f, list(range(10)))
    print ("->", sum(it))