def remove_subscriptions(subscriptions)
      errors = stop_subscriptions subscriptions

      @mutex.synchronize do
        subscriptions.reject(&:active).each do |subscription|
          @subscriptions.delete subscription
        end
      end

      errors
    end
def remove_subscriptions(subscriptions)
      errors = stop_subscriptions subscriptions

      @mutex.synchronize do
        subscriptions.reject(&:active).each do |subscription|
          @subscriptions.delete subscription
        end
      end

      errors
    end
Stops the specified subscriptions and removes them from this session. To just stop subscriptions with the option
 of restarting them at a later date use {#stop_subscriptions} or {Subscription#stop}. The return value is an array
 with one entry per subscription and indicates the error state returned by the server for that subscription's stop
 request, or `nil` if no error occurred.

 @param [Array<Subscription>] subscriptions The subscriptions to stop and remove from this session.

 @return [Array<LightstreamerError, nil>]