Record that `fut` is no longer awaited on by `waiter`.
(fut, waiter, /)
| 455 | |
| 456 | |
| 457 | def future_discard_from_awaited_by(fut, waiter, /): |
| 458 | """Record that `fut` is no longer awaited on by `waiter`.""" |
| 459 | # See the comment in "future_add_to_awaited_by()" body for |
| 460 | # details on implementation. |
| 461 | # |
| 462 | # Note that there's an accelerated version of this function |
| 463 | # shadowing this implementation later in this file. |
| 464 | if isinstance(fut, _PyFuture) and isinstance(waiter, _PyFuture): |
| 465 | if fut._Future__asyncio_awaited_by is not None: |
| 466 | fut._Future__asyncio_awaited_by.discard(waiter) |
| 467 | |
| 468 | |
| 469 | _py_future_add_to_awaited_by = future_add_to_awaited_by |
nothing calls this directly
no test coverage detected
searching dependent graphs…