Invoke all close callbacks registered with :meth:`call_on_close`, and exit all context managers entered with :meth:`with_resource`.
(self)
| 683 | return self._exit_stack.callback(f) |
| 684 | |
| 685 | def close(self) -> None: |
| 686 | """Invoke all close callbacks registered with |
| 687 | :meth:`call_on_close`, and exit all context managers entered |
| 688 | with :meth:`with_resource`. |
| 689 | """ |
| 690 | self._close_with_exception_info(None, None, None) |
| 691 | |
| 692 | def _close_with_exception_info( |
| 693 | self, |