class ConnectionPool
def checkin(force: false)
Experimental RBS support (using type sampling data from the type_fusion project).
def checkin: (force: false) -> untyped
This signature was generated using 3 samples from 1 application.
def checkin(force: false) if ::Thread.current[@key] if ::Thread.current[@key_count] == 1 || force @available.push(::Thread.current[@key]) ::Thread.current[@key] = nil ::Thread.current[@key_count] = nil else ::Thread.current[@key_count] -= 1 end elsif !force raise ConnectionPool::Error, "no connections are checked out" end nil end