code: public void flush()
    {
      if (!enabled)
      {
        return;
      }
      if (!queue.isEmpty())
      {
        // start a new thread to upload without blocking the current thread
        Runnable runUpload = new TelemetryUploader(this, exportQueueToString());
        uploader.execute(runUpload);
      }
    }
docs: force to flush events in the queue