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

Function disposeAll

packages/arctic/src/project/instance.ts:78–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 })
77 },
78 async disposeAll() {
79 Log.Default.info("disposing all instances")
80 for (const [_key, value] of cache) {
81 const awaited = await value.catch(() => {})
82 if (awaited) {
83 await context.provide(await value, async () => {
84 await Instance.dispose()
85 })
86 }
87 }
88 cache.clear()
89 },
90}

Callers

nothing calls this directly

Calls 2

disposeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected