class ConnectionPool
def discard_current_connection(&block)
-
(void)
-
Other tags:
- Yieldreturn: -
Other tags:
- Yieldparam: conn - The connection to be discarded.
Other tags:
- Yield: -
def discard_current_connection(&block) ::Thread.current[@discard_key] = block || proc { |conn| conn } end