(fut, timeout=None)
| 306 | |
| 307 | |
| 308 | def _result_or_cancel(fut, timeout=None): |
| 309 | try: |
| 310 | try: |
| 311 | return fut.result(timeout) |
| 312 | finally: |
| 313 | fut.cancel() |
| 314 | finally: |
| 315 | # Break a reference cycle with the exception in self._exception |
| 316 | del fut |
| 317 | |
| 318 | |
| 319 | class Future(object): |
no test coverage detected
searching dependent graphs…