MCPcopy Create free account
hub / github.com/Noumena-Network/code / ensureStarted

Method ensureStarted

src/tools/REPLTool/pyReplFactory.tsx:354–368  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

352 }
353
354 private async ensureStarted(): Promise<void> {
355 if (this.child && this.child.exitCode === null && !this.child.killed) {
356 return
357 }
358 if (this.startupPromise) {
359 await this.startupPromise
360 return
361 }
362 this.startupPromise = this.start()
363 try {
364 await this.startupPromise
365 } finally {
366 this.startupPromise = null
367 }
368 }
369
370 private async start(): Promise<void> {
371 const rustHostPath = await resolvePythonReplHostExecutable()

Callers 1

executeMethod · 0.95

Calls 1

startMethod · 0.95

Tested by

no test coverage detected