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

Function timeoutController

packages/opencode/src/provider/provider.ts:85–92  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

83}
84
85function timeoutController(ms: number) {
86 const ctl = new AbortController()
87 const id = setTimeout(() => ctl.abort(new ProviderError.HeaderTimeoutError(ms)), ms)
88 return {
89 signal: ctl.signal,
90 clear: () => clearTimeout(id),
91 }
92}
93
94function googleVertexAnthropicBaseURL(project: string | undefined, location: string | undefined) {
95 if (!project) return

Callers 1

resolveSDKFunction · 0.85

Calls 1

abortMethod · 0.45

Tested by

no test coverage detected