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

Method join

recipes/Python/576576_Thread_Pool/recipe-576576.py:28–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 if self.accept:
27 self.jobs.put((job, args, kw, callback))
28 def join(self):
29 self.accept=False
30 while True:
31 for w in self.workers:
32 if w.isAlive() :
33 self.jobs.put((None, None, None, None))
34 break
35 else:
36 break
37 @property
38 def qsize(self): return self.jobs.qsize()
39

Callers 15

DownloadFile_ParallFunction · 0.95
recipe-578464.jsFile · 0.45
recipe-577634.jsFile · 0.45
recipe-577085.jsFile · 0.45
propsFunction · 0.45
recipe-577247.jsFile · 0.45
recipe-578100.jsFile · 0.45
get_all_bookmarksFunction · 0.45
recipe-577012.jsFile · 0.45
DisplayMessageFunction · 0.45
compressFunction · 0.45
array_to_stringFunction · 0.45

Calls 1

putMethod · 0.45

Tested by 8

testFunction · 0.36
test_maxMethod · 0.36
test_tourFunction · 0.36
test_and_add_pathMethod · 0.36
test_pageFunction · 0.36
test_unitMethod · 0.36
test_tailMethod · 0.36
test_i18nifyFunction · 0.36