def perform_subscription_actions(actions)
      request_bodies = actions.map do |hash|
        PostRequest.request_body hash.fetch(:subscription).control_request_options(hash.fetch(:action), hash[:options])
      end

      errors = PostRequest.execute_multiple control_request_url, request_bodies

      # Update the state of subscriptions that did not have an error
      errors.each_with_index do |error, index|
        actions[index][:subscription].after_control_request actions[index][:action] unless error
      end
    end
def perform_subscription_actions(actions)
      request_bodies = actions.map do |hash|
        PostRequest.request_body hash.fetch(:subscription).control_request_options(hash.fetch(:action), hash[:options])
      end

      errors = PostRequest.execute_multiple control_request_url, request_bodies

      # Update the state of subscriptions that did not have an error
      errors.each_with_index do |error, index|
        actions[index][:subscription].after_control_request actions[index][:action] unless error
      end
    end
This method takes an array of subscriptions and actions to perform on those subscriptions. The supported actions
 are `:start`, `:unsilence` and `:stop`. Calling {Subscription#start}, {Subscription#unsilence} or
 {Subscription#stop} on each subscription individually would also work but requires a separate POST request to be
 sent for each action, whereas this method performs all of the specified actions in a single POST request which is
 significantly faster for a large number of actions. The return value is an array with one entry per action and
 indicates the error state returned by the server for that action, or `nil` if no error occurred. It will have the
 same number of entries as the passed `details` array.

 @param [Array<Hash>] actions This array describes the subscription actions to perform. Each entry must be a hash
        containing a `:subscription` key specifying the {Subscription}, and an `:action` key specifying the action
        to perform on the subscription (either `:start`, `:unsilence` or `:stop`). If `:action` is `:start` then an
        `:options` key can be specified, and the supported options are the same as for {Subscription#start}.

 @return [Array<LightstreamerError, nil>]