MCPcopy Index your code
hub / github.com/python/cpython / apply

Method apply

Lib/multiprocessing/pool.py:355–360  ·  view source on GitHub ↗

Equivalent of `func(*args, **kwds)`. Pool must be running.

(self, func, args=(), kwds={})

Source from the content-addressed store, hash-verified

353 raise ValueError("Pool not running")
354
355 def apply(self, func, args=(), kwds={}):
356 '''
357 Equivalent of `func(*args, **kwds)`.
358 Pool must be running.
359 '''
360 return self.apply_async(func, args, kwds).get()
361
362 def map(self, func, iterable, chunksize=None):
363 '''

Callers 15

testFunction · 0.45
hFunction · 0.45
d3.min.jsFile · 0.45
hnFunction · 0.45
dnFunction · 0.45
vnFunction · 0.45
xnFunction · 0.45
knFunction · 0.45
znFunction · 0.45
RnFunction · 0.45
XnFunction · 0.45
ZiFunction · 0.45

Calls 2

apply_asyncMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected