MCPcopy
hub / github.com/gofiber/fiber / ReleaseBind

Function ReleaseBind

bind.go:118–121  ·  view source on GitHub ↗

ReleaseBind returns b acquired via Bind to bind pool.

(b *Bind)

Source from the content-addressed store, hash-verified

116
117// ReleaseBind returns b acquired via Bind to bind pool.
118func ReleaseBind(b *Bind) {
119 b.release()
120 bindPool.Put(b)
121}
122
123// releasePooledBinder resets a binder and returns it to its pool.
124// It should be used with defer to ensure proper cleanup of pooled binders.

Callers 2

Test_AcquireReleaseBindFunction · 0.85
releaseMethod · 0.85

Calls 2

releaseMethod · 0.65
PutMethod · 0.65

Tested by 1

Test_AcquireReleaseBindFunction · 0.68