Return ``True`` if more progress can be made and ``False`` otherwise. Progress can be made if cycles do not block the resolution and either there are still nodes ready that haven't yet been returned by "get_ready" or the number of nodes marked "done" is less than the number
(self)
| 136 | return result |
| 137 | |
| 138 | def is_active(self): |
| 139 | """Return ``True`` if more progress can be made and ``False`` otherwise. |
| 140 | |
| 141 | Progress can be made if cycles do not block the resolution and either there |
| 142 | are still nodes ready that haven't yet been returned by "get_ready" or the |
| 143 | number of nodes marked "done" is less than the number that have been returned |
| 144 | by "get_ready". |
| 145 | |
| 146 | Raises ValueError if called without calling "prepare" previously. |
| 147 | """ |
| 148 | if self._ready_nodes is None: |
| 149 | raise ValueError("prepare() must be called first") |
| 150 | return self._nfinished < self._npassedout or bool(self._ready_nodes) |
| 151 | |
| 152 | def __bool__(self): |
| 153 | return self.is_active() |
no outgoing calls