<s> from multiprocessing import Pool <EOL> def f ( x ) : <EOL> return x * x <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> pool = Pool ( processes = <NUM_LIT:4> ) <EOL> result = pool . apply_async ( f , [ <NUM_LIT:10> ] ) <EOL> print result . get ( timeout = <NUM_LIT:1> ) <EOL> print pool . map ( f , range ( <NUM_LIT:10> ) ) <EOL> t = pool . imap ( f , range ( <NUM_LIT:10> ) ) <EOL> for i in range ( <NUM_LIT:10> ) : <EOL> print t . next ( timeout = <NUM_LIT:1> ) </s>
