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

Method ScheduleReclaim

ctx_interface_gen.go:195–195  ·  view source on GitHub ↗

ScheduleReclaim arms automatic reclamation of an abandoned context, returning it to the pool once it is safe to do so. handlerDone must be closed once the goroutine that still uses this context (for the timeout middleware, the handler goroutine) has completely finished. cancel, if non-nil, is the C

(handlerDone <-chan struct{}, cancel context.CancelFunc)

Source from the content-addressed store, hash-verified

193 // This method calls Abandon internally, so callers do not need to call Abandon
194 // separately. Calling Abandon before ScheduleReclaim is still safe (idempotent).
195 ScheduleReclaim(handlerDone <-chan struct{}, cancel context.CancelFunc)
196 // signalReleased records that the request handler is done touching an abandoned,
197 // reclaim-armed context (event b). It is a no-op when reclamation was not armed
198 // and is safe to call multiple times.

Calls

no outgoing calls