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