MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_context

Method get_context

Lib/multiprocessing/context.py:187–195  ·  view source on GitHub ↗
(self, method=None)

Source from the content-addressed store, hash-verified

185 set_forkserver_preload(module_names)
186
187 def get_context(self, method=None):
188 if method is None:
189 return self
190 try:
191 ctx = _concrete_contexts[method]
192 except KeyError:
193 raise ValueError('cannot find context for %r' % method) from None
194 ctx._check_available()
195 return ctx
196
197 def get_start_method(self, allow_none=False):
198 return self._name

Callers 15

ManagerMethod · 0.95
LockMethod · 0.95
RLockMethod · 0.95
ConditionMethod · 0.95
SemaphoreMethod · 0.95
BoundedSemaphoreMethod · 0.95
EventMethod · 0.95
BarrierMethod · 0.95
QueueMethod · 0.95
JoinableQueueMethod · 0.95
SimpleQueueMethod · 0.95
PoolMethod · 0.95

Calls 1

_check_availableMethod · 0.45

Tested by

no test coverage detected