Open and close an evaluation executor as a context manager.
Use ``none`` or ``sequential`` for in-process evaluation,
``multithreading`` for a thread pool, and ``multiprocessing`` or
``concurrent`` for a process pool. The process pool prefers forkserver
when available and otherwise uses spawn. SCOOP and Ray require
their optional runtime packages.
:param parallelism_type: Executor backend name.
:param max_workers: Optional worker count for the standard pools or CPU
count for a local Ray runtime.
:param toolbox: Optional DEAP toolbox copied and bound to executor.map.
:param force_worker_suicide: Install the process worker's interrupt handler.
:param ray_address: Optional cluster address for the Ray backend.
Process evaluation needs picklable evaluation functions and candidates.
Protect executable entry points with the usual main guard.
Definition at line 336 of file base.py.