MCPcopy
hub / github.com/brimdata/zui / initialize

Method initialize

apps/zui/src/domain/loads/plugin-api.ts:15–21  ·  view source on GitHub ↗
(context: LoadContext)

Source from the content-addressed store, hash-verified

13 }
14
15 async initialize(context: LoadContext) {
16 for (const {initialize} of this.loaders) {
17 const loader = initialize(context)
18 if (await loader.when()) return loader
19 }
20 throw new Error("Loader not found")
21 }
22
23 private get loaders() {
24 return [...this.list, ...DEFAULT_LOADERS]

Callers 2

runInitializersFunction · 0.80
loadMethod · 0.80

Calls 2

whenMethod · 0.65
initializeFunction · 0.50

Tested by

no test coverage detected