Helper setting the result only if the future was not cancelled.
(fut, result)
| 317 | |
| 318 | |
| 319 | def _set_result_unless_cancelled(fut, result): |
| 320 | """Helper setting the result only if the future was not cancelled.""" |
| 321 | if fut.cancelled(): |
| 322 | return |
| 323 | fut.set_result(result) |
| 324 | |
| 325 | |
| 326 | def _convert_future_exc(exc): |
nothing calls this directly
no test coverage detected