Method
__exit__
(
self,
exc_type: Optional[Type[BaseException]],
exc_val: Optional[BaseException],
exc_tb: Optional[TracebackType],
)
Source from the content-addressed store, hash-verified
| 74 | return self._event |
| 75 | |
| 76 | def __exit__( |
| 77 | self, |
| 78 | exc_type: Optional[Type[BaseException]], |
| 79 | exc_val: Optional[BaseException], |
| 80 | exc_tb: Optional[TracebackType], |
| 81 | ) -> None: |
| 82 | if exc_val: |
| 83 | self._event._cancel() |
| 84 | else: |
| 85 | self._event.value |
| 86 | |
| 87 | |
| 88 | class SyncBase(ImplWrapper): |
Callers
nothing calls this directly
Tested by
no test coverage detected