(self, length)
| 892 | self._pool = None |
| 893 | |
| 894 | def _set_length(self, length): |
| 895 | with self._cond: |
| 896 | self._length = length |
| 897 | if self._index == self._length: |
| 898 | self._cond.notify() |
| 899 | del self._cache[self._job] |
| 900 | self._pool = None |
| 901 | |
| 902 | # |
| 903 | # Class whose instances are returned by `Pool.imap_unordered()` |