I am making a call to multiprocessing.pool() as such:
to_stop = None .... def function(): .... with multiprocessing.Pool(processes=threads) as pool: