MCPcopy Index your code
hub / github.com/anomalyco/opencode / timeout

Function timeout

packages/opencode/test/session/llm.test.ts:587–591  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

585}
586
587function timeout(ms: number) {
588 return new Promise<never>((_, reject) => {
589 setTimeout(() => reject(new Error(`timed out after ${ms}ms`)), ms)
590 })
591}
592
593function waitStreamingRequest(pathname: string) {
594 const request = deferred<Capture>()

Callers 1

llm.test.tsFile · 0.70

Calls 1

rejectFunction · 0.50

Tested by

no test coverage detected