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

Method IsClosed

internal/pool/conn.go:942–944  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

940}
941
942func (cn *Conn) IsClosed() bool {
943 return cn.stateMachine.GetState() == StateClosed
944}
945
946func (cn *Conn) Close() error {
947 if cn.IsClosed() {

Callers 5

handleMovingMethod · 0.95
CloseMethod · 0.95
OnNextMethod · 0.80
OnPutMethod · 0.80
pool_test.goFile · 0.80

Calls 1

GetStateMethod · 0.45

Tested by

no test coverage detected