Source code for mpservice.multiprocessing.pool
import multiprocessing
from .context import MP_SPAWN_CTX
[docs]
class Pool(multiprocessing.pool.Pool):
[docs]
def __init__(self, *args, context=None, **kwargs):
super().__init__(*args, context=context or MP_SPAWN_CTX, **kwargs)