MCPcopy
hub / github.com/EverythingSuckz/TG-FileStreamBot / Close

Method Close

internal/stream/pipe.go:134–139  ·  view source on GitHub ↗

Close implements io.Closer. it cancels prefetching and releases resources.

()

Source from the content-addressed store, hash-verified

132// Close implements io.Closer.
133// it cancels prefetching and releases resources.
134func (p *StreamPipe) Close() error {
135 p.closeOnce.Do(func() {
136 p.cancel()
137 })
138 return nil
139}
140
141// prefetch runs in a goroutine, fetching blocks concurrently and sending to blockQueue.
142func (p *StreamPipe) prefetch() {

Callers 4

getStreamRouteFunction · 0.95
getInternalIPFunction · 0.80
GetPublicIPFunction · 0.80
checkIfIpAccessibleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected