close (timeout) {
    if (timeout === undefined) {
      timeout = 10
    }
    if (this.listenerCount('on_data_available') !== 0) {
      this.removeAllListeners('on_data_available')
    }
    return new Promise((resolve, reject) => {
      // Internally, we retry every 200ms, so scale the timeout appropriately
      this.closeImpl(resolve, reject, timeout * 5, true)
    })
  }
/**
   * Frees all the resources created by this :class:`Connector` instance.
   *
   * @argument {number} [timeout] Optional parameter to indicate the timeout 
   *   of the operation, in seconds. By default, 10s. If this operation does 
   *   not complete within the specified timeout, the returned Promise will 
   *   be rejected.
   * @returns {Promise} Which resolves once the :class:`Connector` object has 
   *   been freed. It is only necessary to wait for this promise to resolve 
   *   if you have attached a listener for the ``on_data_available`` event.
   */
Frees all the resources created by this :class:`Connector` instance.
@argument {number} [timeout] Optional parameter to indicate the timeout
of the operation, in seconds. By default, 10s. If this operation does
not complete within the specified timeout, the returned Promise will
be rejected.
@returns {Promise} Which resolves once the :class:`Connector` object has
been freed. It is only necessary to wait for this promise to resolve
if you have attached a listener for the ``on_data_available`` event.
Frees all the resources created by this : class : ` Connector ` instance . @argument { number } [ timeout ] Optional parameter to indicate the timeout of the operation in seconds . By default 10s . If this operation does not complete within the specified timeout the returned Promise will be rejected . @returns { Promise } Which resolves once the : class : ` Connector ` object has been freed . It is only necessary to wait for this promise to resolve if you have attached a listener for the ` ` on_data_available ` ` event .
close (timeout) {
    if (timeout === undefined) {
      timeout = 10
    }
    if (this.listenerCount('on_data_available') !== 0) {
      this.removeAllListeners('on_data_available')
    }
    return new Promise((resolve, reject) => {
      this.closeImpl(resolve, reject, timeout * 5, true)
    })
  }
close ( timeout ) { if ( timeout === undefined ) { timeout = 10 } if ( this . listenerCount ( 'on_data_available' ) !== 0 ) { this . removeAllListeners ( 'on_data_available' ) } return new Promise ( ( resolve , reject ) => { this . closeImpl ( resolve , reject , timeout * 5 , true ) } ) }
Frees all the resources created by this :class:`Connector` instance.
Frees all the resources created by this : class : ` Connector ` instance .
// Internally, we retry every 200ms, so scale the timeout appropriately