MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / registerRuntimeStopHandler

Method registerRuntimeStopHandler

projects/runtime/src/server.ts:207–213  ·  view source on GitHub ↗
(handler: RuntimeStopHandler)

Source from the content-addressed store, hash-verified

205 }
206
207 registerRuntimeStopHandler(handler: RuntimeStopHandler): () => void {
208 this.runtimeStopHandlers.push(handler)
209 return () => {
210 const index = this.runtimeStopHandlers.indexOf(handler)
211 if (index >= 0) this.runtimeStopHandlers.splice(index, 1)
212 }
213 }
214
215 registerAgentProviderResolver(resolver: () => AgentProviderSummary[]): () => void {
216 this.agentProviderResolvers.add(resolver)

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected