lib/mongo/session/session_pool.rb
# Checkin a server session to the pool.
#
# @example Checkin a session.
#   pool.checkin(session)
#
# @param [ Session::ServerSession ] session The session to checkin.
#
# @since 2.5.0
Checkin a server session to the pool.
Checkin a server session to the pool .
def checkin(session)
        @mutex.synchronize do
          prune!
          unless about_to_expire?(session)
            @queue.unshift(session)
          end
        end
      end
def checkin ( session ) @mutex . synchronize do prune! unless about_to_expire? ( session ) @queue . unshift ( session ) end end end
Checkin a server session to the pool.
Checkin a server session to the pool .
session
session The session to checkin.
session The session to checkin .
example
Checkin a session. pool.checkin(session)
Checkin a session . pool . checkin ( session )
since
None