Function ConnectionPool.lockConnection
Retrieves a connection to temporarily associate with the calling fiber.
The returned LockedConnection
object uses RAII and reference counting
to determine when to unlock the connection.