()
| 129 | print(f"{remaining} ticks remaining") |
| 130 | |
| 131 | def run(): |
| 132 | it = timer(4) |
| 133 | while True: |
| 134 | try: |
| 135 | if check_for_reset(): |
| 136 | current = it.throw(Reset()) |
| 137 | else: |
| 138 | current = next(it) |
| 139 | except StopIteration: |
| 140 | break |
| 141 | else: |
| 142 | announce(current) |
| 143 | |
| 144 | run() |
| 145 |
no test coverage detected