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