MCPcopy
hub / github.com/vitest-dev/vitest / terminate

Method terminate

packages/web-worker/src/worker.ts:196–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194 }
195
196 terminate() {
197 debug('terminating worker %s', this._vw_name)
198 this._vw_outsideListeners.forEach((fn, type) => {
199 this.removeEventListener(type, fn)
200 })
201 this._vw_insideListeners.forEach((fn, type) => {
202 this._vw_workerTarget.removeEventListener(type, fn)
203 })
204 }
205 }
206}

Callers 4

constructorMethod · 0.95
sumInBackgroundFunction · 0.95
stopMethod · 0.80

Calls 1

debugFunction · 0.50

Tested by

no test coverage detected