(self)
| 46 | self.cond.notify() |
| 47 | |
| 48 | async def run(self): |
| 49 | while not self.stopped or self.ops: |
| 50 | if not self.ops: |
| 51 | async with self.cond: |
| 52 | await _async_cond_wait(self.cond, 10) |
| 53 | if self.ops: |
| 54 | try: |
| 55 | work = self.ops.pop(0) |
| 56 | await work() |
| 57 | except Exception as exc: |
| 58 | self.exc = exc |
| 59 | await self.stop() |
| 60 | |
| 61 | |
| 62 | class AsyncSpecTestCreator: |
no test coverage detected