Runs the mtheading and returns when all threads have joined resets the task.
(self)
| 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 |