wait (timeout) {
    return new Promise((resolve, reject) => {
      if (timeout === undefined) {
        timeout = -1
      } else if (!_isNumber(timeout)) {
        throw new TypeError('timeout must be a number')
      }
      connectorBinding.api.RTI_Connector_wait_for_acknowledgments.async(
        this.native,
        timeout,
        (err, res) => {
          if (err) {
            reject(err)
          }
          _checkRetcode(res)
          resolve()
        }
      )
    })
  }
/**
   * Waits until all matching reliable subscriptions have acknowledged all the 
   * samples that have currently been written.
   *
   * This method only waits if this Output is configured with a reliable QoS.
   *
   * .. note::
   *   This operation is asynchronous
   *
   * @param {timeout} [timeout] The maximum time to wait, in milliseconds. 
   *   By default, infinite.
   * @throws {TimeoutError} :class:`TimeoutError` will be thrown if the timeout
   *   expires before all matching reliable subscriptions acknowledge all the 
   *   samples.
   * @returns {Promise} Promise object which will be rejected if not all matching 
   *   reliable subscriptions acknowledge all of the samples within the specified 
   *   timeout.
   */
Waits until all matching reliable subscriptions have acknowledged all the
samples that have currently been written.

This method only waits if this Output is configured with a reliable QoS.

:
This operation is asynchronous

@param {timeout} [timeout] The maximum time to wait, in milliseconds.
By default, infinite.
@throws {TimeoutError} :class:`TimeoutError` will be thrown if the timeout
expires before all matching reliable subscriptions acknowledge all the
samples.
@returns {Promise} Promise object which will be rejected if not all matching
reliable subscriptions acknowledge all of the samples within the specified
timeout.
Waits until all matching reliable subscriptions have acknowledged all the samples that have currently been written . This method only waits if this Output is configured with a reliable QoS . : This operation is asynchronous @param { timeout } [ timeout ] The maximum time to wait in milliseconds . By default infinite . @throws { TimeoutError } : class : ` TimeoutError ` will be thrown if the timeout expires before all matching reliable subscriptions acknowledge all the samples . @returns { Promise } Promise object which will be rejected if not all matching reliable subscriptions acknowledge all of the samples within the specified timeout .
wait (timeout) {
    return new Promise((resolve, reject) => {
      if (timeout === undefined) {
        timeout = -1
      } else if (!_isNumber(timeout)) {
        throw new TypeError('timeout must be a number')
      }
      connectorBinding.api.RTI_Connector_wait_for_acknowledgments.async(
        this.native,
        timeout,
        (err, res) => {
          if (err) {
            reject(err)
          }
          _checkRetcode(res)
          resolve()
        }
      )
    })
  }
wait ( timeout ) { return new Promise ( ( resolve , reject ) => { if ( timeout === undefined ) { timeout = - 1 } else if ( ! _isNumber ( timeout ) ) { throw new TypeError ( 'timeout must be a number' ) } connectorBinding . api . RTI_Connector_wait_for_acknowledgments . async ( this . native , timeout , ( err , res ) => { if ( err ) { reject ( err ) } _checkRetcode ( res ) resolve ( ) } ) } ) }
Waits until all matching reliable subscriptions have acknowledged all the
 samples that have currently been written.
Waits until all matching reliable subscriptions have acknowledged all the samples that have currently been written .