class Aws::Api::Documenter

def document_client_waiters(yard_class)

def document_client_waiters(yard_class)
  m = YARD::CodeObjects::MethodObject.new(yard_class, :wait_until)
  m.scope = :instance
  m.parameters << ['waiter_name', nil]
  m.parameters << ['params', '{}']
  m.docstring = YARD::Registry['Aws::ClientWaiters#wait_until'].docstring
  waiters = @client_class.waiters.waiter_names.sort.inject('') do |w,name|
    waiter = @client_class.waiters.waiter(name)
    operation = waiter.poller.operation_name
    w << "<tr><td><tt>:#{name}</tt></td><td>{##{operation}}</td><td>#{waiter.delay}</td><td>#{waiter.max_attempts}</td></tr>"
  end
  docstring = <<-DOCSTRING
s the list of supported waiters. The following table lists the supported
s and the client method they call:
>
>
h>Waiter Name</th><th>Client Method</th><th>Delay</th><th>Max Attempts</th></tr>
d>
>
ers}
y>
e>
n [Array<Symbol>] the list of supported waiters.
  DOCSTRING
  m = YARD::CodeObjects::MethodObject.new(yard_class, :waiter_names)
  m.scope = :instance
  m.docstring = docstring
end