(self, with_delay: float)
| 239 | return await self._tasks.pop() |
| 240 | |
| 241 | def run_later(self, with_delay: float) -> None: |
| 242 | later: list[MockTimerHandle] = [] |
| 243 | for timer_handle in self._later: |
| 244 | if with_delay >= timer_handle.delay: |
| 245 | timer_handle.callback(*timer_handle.args) |
| 246 | else: |
| 247 | later.append(timer_handle) |
| 248 | self._later = later |
| 249 | |
| 250 | |
| 251 | class MockTask: |
no outgoing calls
no test coverage detected