(self, _warn=warnings.warn, RUN=RUN)
| 264 | # Copy globals as function locals to make sure that they are available |
| 265 | # during Python shutdown when the Pool is destroyed. |
| 266 | def __del__(self, _warn=warnings.warn, RUN=RUN): |
| 267 | if self._state == RUN: |
| 268 | _warn(f"unclosed running multiprocessing pool {self!r}", |
| 269 | ResourceWarning, source=self) |
| 270 | if getattr(self, '_change_notifier', None) is not None: |
| 271 | self._change_notifier.put(None) |
| 272 | |
| 273 | def __repr__(self): |
| 274 | cls = self.__class__ |