(self)
| 645 | ) |
| 646 | |
| 647 | def close(self): |
| 648 | util.debug('closing pool') |
| 649 | if self._state == RUN: |
| 650 | self._state = CLOSE |
| 651 | self._worker_handler._state = CLOSE |
| 652 | self._change_notifier.put(None) |
| 653 | |
| 654 | def terminate(self): |
| 655 | util.debug('terminating pool') |