MCPcopy
hub / github.com/codelucas/newspaper / join

Method join

newspaper/mthreading.py:88–99  ·  view source on GitHub ↗

Runs the mtheading and returns when all threads have joined resets the task.

(self)

Source from the content-addressed store, hash-verified

86 self.config = config or Configuration()
87
88 def join(self):
89 """
90 Runs the mtheading and returns when all threads have joined
91 resets the task.
92 """
93 if self.pool is None:
94 print('Call set(..) with a list of source '
95 'objects before .join(..)')
96 raise
97 self.pool.wait_completion()
98 self.papers = []
99 self.pool = None
100
101 def set(self, paper_list, threads_per_source=1):
102 self.papers = paper_list

Callers 15

innerTrimFunction · 0.80
__init__Method · 0.80
nlpMethod · 0.80
get_resource_pathMethod · 0.80
clean_urlFunction · 0.80
loadResourceFileMethod · 0.80
_2Function · 0.80
to_valid_filenameFunction · 0.80
inner_functionFunction · 0.80
purgeFunction · 0.80
clear_memo_cacheFunction · 0.80
memoize_articlesFunction · 0.80

Calls 1

wait_completionMethod · 0.80

Tested by 4

mock_resource_withFunction · 0.64
get_base_domainFunction · 0.64
test_valid_urlsMethod · 0.64
test_download_worksMethod · 0.64