Complete the future with an exception. Args: exception (Exception): Exception that caused the failure.
(self, exception)
| 196 | self._signal_ready() |
| 197 | |
| 198 | def _set_exception(self, exception): |
| 199 | """Complete the future with an exception. |
| 200 | |
| 201 | Args: |
| 202 | exception (Exception): |
| 203 | Exception that caused the failure. |
| 204 | """ |
| 205 | self._exception = exception |
| 206 | self._signal_ready() |
| 207 | |
| 208 | def _signal_ready(self): |
| 209 | """Signal all the events waiting on this future.""" |
no test coverage detected