Lines Matching refs:exit
470 def push(self, exit):
479 _cb_type = type(exit)
485 self._push_exit_callback(exit)
487 self._push_cm_exit(exit, exit_method)
488 return exit # Allow use as a decorator.
533 """Context manager for dynamic management of a stack of exit callbacks.
602 """Async context manager for dynamic management of a stack of exit
642 def push_async_exit(self, exit):
650 _cb_type = type(exit)
655 self._push_exit_callback(exit, False)
657 self._push_async_cm_exit(exit, exit_method)
658 return exit # Allow use as a decorator