(source)
| 399 | source_loop.call_soon_threadsafe(source.cancel) |
| 400 | |
| 401 | def _call_set_state(source): |
| 402 | if (destination.cancelled() and |
| 403 | dest_loop is not None and dest_loop.is_closed()): |
| 404 | return |
| 405 | if dest_loop is None or dest_loop is events._get_running_loop(): |
| 406 | _set_state(destination, source) |
| 407 | else: |
| 408 | if dest_loop.is_closed(): |
| 409 | return |
| 410 | dest_loop.call_soon_threadsafe(_set_state, destination, source) |
| 411 | |
| 412 | destination.add_done_callback(_call_check_cancel) |
| 413 | source.add_done_callback(_call_set_state) |
nothing calls this directly
no test coverage detected
searching dependent graphs…