There is function which need to sleep 10 second. But in the meantime, I don't want it to block my main function. How to deal with that? I try to do like that. However, it still block my main function.
def tester():
pool.size=2;
pool=multiprocessing.Pool(pool_size);
pool.apply_async(send_mail, args=("test",));
pool.close();
pool.join();
print "email is done";
the main function will call this function.