method
release_connection
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveRecord::ConnectionAdapters::ConnectionPool
release_connection(owner_thread = ActiveSupport::IsolatedExecutionState.context)
public
Signal that the thread is finished with the current connection. #release_connection releases the connection-thread association and returns the connection to the pool.
This method only works for connections that have been obtained through #connection or #with_connection methods, connections obtained through #checkout will not be automatically released.