MCPcopy
hub / github.com/NitroRCr/AIaW / close

Function close

src/utils/tauri-stream.ts:44–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43 let closed = false
44 const close = () => {
45 if (closed) return
46 closed = true
47 unlisten && unlisten()
48 writer.ready.then(() => {
49 writer.close().catch((e) => console.error(e))
50 })
51 }
52
53 if (signal) {
54 signal.addEventListener('abort', () => close())

Callers 1

fetchFunction · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected