def map(&block)
      collection = []

      each do |connection|
        collection << block.call(connection) if block
      end

      collection
    end
def map(&block)
      collection = []

      each do |connection|
        collection << block.call(connection) if block
      end

      collection
    end
Behaves similarly to Ruby's Array#map, invoking the given block with
 each active connection object and returning a new array with the results.

 See UserManager#each for details on the current usage and limitations.