lib/mongo/cluster.rb
def connecting?
      @update_lock.synchronize do
        !!@connecting
      end
    end
# Whether the cluster object is in the process of connecting to its cluster.
#
# @return [ true|false ] Whether the cluster is connecting.
#
# @api private
Whether the cluster object is in the process of connecting to its cluster.
Whether the cluster object is in the process of connecting to its cluster .
def connecting?
      @update_lock.synchronize do
        !!@connecting
      end
    end
def connecting? @update_lock . synchronize do ! ! @connecting end end
Whether the cluster object is in the process of connecting to its cluster.
Whether the cluster object is in the process of connecting to its cluster .
Whether the cluster is connecting.
Whether the cluster is connecting .
 true|false 
api
None