code: function dispose() {
    if (typeof this.destroy === 'function') {
      this.destroy()
    } else if (typeof this.stop === 'function') {
      this.stop()
    } else if (typeof this.kill === 'function') {
      this.kill()
    } else if (typeof this.end === 'function') {
      this.end()
    } else {
      throw new Error('Unable to dispose object')
    }
  }
docs: /* @flow