MCPcopy Create free account
hub / github.com/corestoreio/pkg / PutCallBack

Method PutCallBack

util/bufferpool/twin.go:140–145  ·  view source on GitHub ↗

PutCallBack same as Put but executes fn after buf has been returned into the pool. Good use case when you might have multiple defers in your code.

(buf *TwinBuffer, fn func())

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

PutTwinCallBackFunction · 0.80
TestBufferPoolMultiSizeFunction · 0.80

Calls 2

ResetMethod · 0.45
PutMethod · 0.45

Tested by 1

TestBufferPoolMultiSizeFunction · 0.64