MCPcopy
hub / github.com/redis/go-redis / isHandoffPending

Method isHandoffPending

maintnotifications/handoff_worker.go:91–94  ·  view source on GitHub ↗

isHandoffPending returns true if the given connection has a pending handoff

(conn *pool.Conn)

Source from the content-addressed store, hash-verified

89
90// isHandoffPending returns true if the given connection has a pending handoff
91func (hwm *handoffWorkerManager) isHandoffPending(conn *pool.Conn) bool {
92 _, pending := hwm.pending.Load(conn.GetID())
93 return pending
94}
95
96// ensureWorkerAvailable ensures at least one worker is available to process requests
97// Creates a new worker if needed and under the max limit

Callers 2

IsHandoffPendingMethod · 0.80
OnPutMethod · 0.80

Calls 2

GetIDMethod · 0.80
LoadMethod · 0.45

Tested by

no test coverage detected