Helper setting the result only if the future was not cancelled.
(fut, result)
| 321 | |
| 322 | |
| 323 | def _set_result_unless_cancelled(fut, result): |
| 324 | """Helper setting the result only if the future was not cancelled.""" |
| 325 | if fut.cancelled(): |
| 326 | return |
| 327 | fut.set_result(result) |
| 328 | |
| 329 | |
| 330 | def _convert_future_exc(exc): |
nothing calls this directly
no test coverage detected
searching dependent graphs…