def publish_events(topic_hostname, events, custom_headers:nil)
      response = publish_events_async(topic_hostname, events, custom_headers:custom_headers).value!
      nil
    end
def publish_events(topic_hostname, events, custom_headers:nil)
      response = publish_events_async(topic_hostname, events, custom_headers:custom_headers).value!
      nil
    end
Publishes a batch of events to an Azure Event Grid topic.

 @param topic_hostname [String] The host name of the topic, e.g.
 topic1.westus2-1.eventgrid.azure.net
 @param events [Array<EventGridEvent>] An array of events to be published to
 Event Grid.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.