()
| 516 | |
| 517 | |
| 518 | def _shutdown_monitors() -> None: |
| 519 | if _MONITORS is None: |
| 520 | return |
| 521 | |
| 522 | # Copy the set. Closing monitors removes them. |
| 523 | monitors = list(_MONITORS) |
| 524 | |
| 525 | # Close all monitors. |
| 526 | for ref in monitors: |
| 527 | monitor = ref() |
| 528 | if monitor: |
| 529 | monitor.gc_safe_close() |
| 530 | |
| 531 | monitor = None |
| 532 | |
| 533 | |
| 534 | def _shutdown_resources() -> None: |
nothing calls this directly
no test coverage detected