(fut)
| 181 | |
| 182 | |
| 183 | def _run_until_complete_cb(fut): |
| 184 | if not fut.cancelled(): |
| 185 | exc = fut.exception() |
| 186 | if isinstance(exc, (SystemExit, KeyboardInterrupt)): |
| 187 | # Issue #22429: run_forever() already finished, no need to |
| 188 | # stop it. |
| 189 | return |
| 190 | futures._get_loop(fut).stop() |
| 191 | |
| 192 | |
| 193 | if hasattr(socket, 'TCP_NODELAY'): |