MCPcopy
hub / github.com/esm-dev/esm.sh / Stop

Method Stop

web/worker.go:99–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99func (jsw *JSWorker) Stop() (err error) {
100 if jsw.process != nil {
101 jsw.process.Kill()
102 jsw.process = nil
103 }
104 jsw.stdin = nil
105 jsw.stdout = nil
106 jsw.outReader = nil
107 if jsw.debug {
108 fmt.Println(term.Dim(fmt.Sprintf("[debug] js worker stopped (runtime: %s)", jsw.script)))
109 }
110 return
111}
112
113func (jsw *JSWorker) Call(args ...any) (format string, output string, err error) {
114 // only one load call can be invoked at a time

Callers 5

addImportsFunction · 0.80
showMethod · 0.80
startSpinnerMethod · 0.80
esmRouterFunction · 0.80
sleepWithContextFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected