(self, func: Callable[_P, _R], *args: _P.args, **kwargs: _P.kwargs)
| 267 | _future_result(acquire_future) |
| 268 | |
| 269 | async def _run(self, func: Callable[_P, _R], *args: _P.args, **kwargs: _P.kwargs) -> _R: |
| 270 | future = self._submit(func, *args, **kwargs) |
| 271 | try: |
| 272 | await _wait_until_done(future) |
| 273 | except asyncio.CancelledError as cancellation: |
| 274 | try: |
| 275 | await _drain_future(future) |
| 276 | except BaseException as error: # ruff:ignore[blind-except] # reported with the cancellation below |
| 277 | _raise_cancelled_error(cancellation, error) |
| 278 | raise |
| 279 | return _future_result(future) |
| 280 | |
| 281 | def _submit( |
| 282 | self, func: Callable[_P, _R], *args: _P.args, **kwargs: _P.kwargs |
no test coverage detected