(fut, timeout=None)
| 312 | |
| 313 | |
| 314 | def _result_or_cancel(fut, timeout=None): |
| 315 | try: |
| 316 | try: |
| 317 | return fut.result(timeout) |
| 318 | finally: |
| 319 | fut.cancel() |
| 320 | finally: |
| 321 | # Break a reference cycle with the exception in self._exception |
| 322 | del fut |
| 323 | |
| 324 | |
| 325 | class Future(object): |
no test coverage detected