def persist_or_delay_atomic_operation(operation)
      if executing_atomically?
        operation.each do |(name, hash)|
          @atomic_context[name] ||= {}
          @atomic_context[name].merge!(hash)
        end
      else
        persist_atomic_operations(operation)
      end
    end
def persist_or_delay_atomic_operation(operation)
      if executing_atomically?
        operation.each do |(name, hash)|
          @atomic_context[name] ||= {}
          @atomic_context[name].merge!(hash)
        end
      else
        persist_atomic_operations(operation)
      end
    end
If we are in an atomically block, add the operations to the delayed group,
 otherwise persist immediately.

 @api private

 @example Persist immediately or delay the operations.
   document.persist_or_delay_atomic_operation(ops)

 @param [ Hash ] operation The operation.

 @since 4.0.0