blob: d423d9b9a136f22e6056da369feca639e2975e68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# mypy: allow-untyped-defs
import multiprocessing
_context = None
def get_context():
global _context
if _context is None:
_context = multiprocessing.get_context("spawn")
return _context
|