()
| 1525 | lock = _threading.Lock() |
| 1526 | |
| 1527 | def worker() -> None: |
| 1528 | barrier.wait() |
| 1529 | tok = cache.get_token() |
| 1530 | with lock: |
| 1531 | results.append(tok) |
| 1532 | |
| 1533 | threads = [_threading.Thread(target=worker) for _ in range(8)] |
| 1534 | for t in threads: |
no test coverage detected