MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / flush

Method flush

asyncbuffer/buffer_test.go:103–106  ·  view source on GitHub ↗

flush unlocks the reader, allowing it to return all data as usual

()

Source from the content-addressed store, hash-verified

101
102// flush unlocks the reader, allowing it to return all data as usual
103func (r *blockingReader) flush() {
104 r.unlocking.Store(true) // allow reading data without blocking
105 r.mu.Unlock() // and continue
106}
107
108// generateSourceData generates a byte slice with 4.5 chunks of data
109func generateSourceData(t *testing.T, size int) ([]byte, *countingReader) {

Callers 1

TestAsyncBufferReadAsyncFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected