MCPcopy Create free account
hub / github.com/arctic-cli/interface / poll

Function poll

packages/arctic/src/auth/codex-oauth/auth/server.ts:49–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 close: () => server.close(),
48 waitForCode: async () => {
49 const poll = () => new Promise<void>((r) => setTimeout(r, 100));
50 for (let i = 0; i < 600; i++) {
51 const lastCode = (server as http.Server & { _lastCode?: string })._lastCode;
52 if (lastCode) return { code: lastCode };

Callers 1

startLocalOAuthServerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected