(fut)
| 309 | |
| 310 | |
| 311 | def _get_loop(fut): |
| 312 | # Tries to call Future.get_loop() if it's available. |
| 313 | # Otherwise fallbacks to using the old '_loop' property. |
| 314 | try: |
| 315 | get_loop = fut.get_loop |
| 316 | except AttributeError: |
| 317 | pass |
| 318 | else: |
| 319 | return get_loop() |
| 320 | return fut._loop |
| 321 | |
| 322 | |
| 323 | def _set_result_unless_cancelled(fut, result): |
no outgoing calls
no test coverage detected
searching dependent graphs…