MCPcopy Create free account
hub / github.com/ActiveState/code / add

Method add

recipes/Python/576576_Thread_Pool/recipe-576576.py:25–27  ·  view source on GitHub ↗
(self, job, callback=None, *args, **kw)

Source from the content-addressed store, hash-verified

23 return len(self.workers)
24 return get, set
25 def add(self, job, callback=None, *args, **kw):
26 if self.accept:
27 self.jobs.put((job, args, kw, callback))
28 def join(self):
29 self.accept=False
30 while True:

Callers 4

recordtypeFunction · 0.45
recipe-576576.pyFile · 0.45
_scanMethod · 0.45
__enter__Method · 0.45

Calls 1

putMethod · 0.45

Tested by

no test coverage detected