()
| 1798 | lock = _threading.Lock() |
| 1799 | |
| 1800 | def worker() -> None: |
| 1801 | barrier.wait() |
| 1802 | tok = cache.get_token() |
| 1803 | with lock: |
| 1804 | results.append(tok) |
| 1805 | |
| 1806 | threads = [_threading.Thread(target=worker) for _ in range(8)] |
| 1807 | for t in threads: |
no test coverage detected