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