lib/mongo/session/session_pool.rb
# Check out a server session from the pool.
#
# @example Check out a session.
#   pool.checkout
#
# @return [ ServerSession ] The server session.
#
# @since 2.5.0
Check out a server session from the pool.
Check out a server session from the pool .
def checkout
        @mutex.synchronize do
          loop do
            if @queue.empty?
              return ServerSession.new
            else
              session = @queue.shift
              unless about_to_expire?(session)
                return session
              end
            end
          end
        end
      end
def checkout @mutex . synchronize do loop do if @queue . empty? return ServerSession . new else session = @queue . shift unless about_to_expire? ( session ) return session end end end end end
Check out a server session from the pool.
Check out a server session from the pool .
The server session.
The server session .
 ServerSession 
example
Check out a session. pool.checkout
Check out a session . pool . checkout
since
None