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

Method signalReleased

ctx.go:805–811  ·  view source on GitHub ↗

signalReleased records that the request handler is done touching an abandoned, reclaim-armed context (event b). It is a no-op when reclamation was not armed and is safe to call multiple times.

()

Source from the content-addressed store, hash-verified

803// reclaim-armed context (event b). It is a no-op when reclamation was not armed
804// and is safe to call multiple times.
805func (c *DefaultCtx) signalReleased() {
806 if c.reclaim != nil {
807 c.reclaim.once.Do(func() {
808 close(c.reclaim.releasedCh)
809 })
810 }
811}
812
813func (c *DefaultCtx) renderExtensions(bind any) {
814 if bindMap, ok := bind.(Map); ok {

Callers

nothing calls this directly

Calls 1

DoMethod · 0.65

Tested by

no test coverage detected