def document_wait_method(section, waiter_name, event_emitter, service_model, service_waiter_model, include_signature=True):
 waiter_model = service_waiter_model.get_waiter(waiter_name)
 operation_model = service_model.operation_model(waiter_model.operation)
 wait_description = 'Polls :py:meth:`{0}.Client.{1}` every {2} seconds until a successful state is reached. An error is returned after {3} failed checks.'.format(get_service_module_name(service_model), xform_name(waiter_model.operation), waiter_model.delay, waiter_model.max_attempts)
 document_model_driven_method(section, 'wait', operation_model, event_emitter=event_emitter, method_description=wait_description, example_prefix='waiter.wait', document_output=False, include_signature=include_signature)

def document_wait_method ( section , waiter_name , event_emitter , service_model , service_waiter_model , include_signature = True ) : waiter_model = service_waiter_model . get_waiter ( waiter_name ) operation_model = service_model . operation_model ( waiter_model . operation ) wait_description = 'Polls :py:meth:`{0}.Client.{1}` every {2} seconds until a successful state is reached. An error is returned after {3} failed checks.' . format ( get_service_module_name ( service_model ) , xform_name ( waiter_model . operation ) , waiter_model . delay , waiter_model . max_attempts ) document_model_driven_method ( section , 'wait' , operation_model , event_emitter = event_emitter , method_description = wait_description , example_prefix = 'waiter.wait' , document_output = False , include_signature = include_signature )
documents a the wait method of a waiter .