MCPcopy
hub / github.com/TanStack/router / safeClose

Function safeClose

packages/router-core/src/ssr/transformStreamWithRouter.ts:138–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 }
137
138 const safeClose = () => {
139 if (isStreamClosed) return
140 isStreamClosed = true
141 try {
142 controller?.close()
143 } catch {
144 // ignore
145 }
146 }
147
148 const safeError = (error: unknown) => {
149 if (isStreamClosed) return

Callers 2

tryFinishFunction · 0.70

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected