docs: protected void startThreadIfNeeded() {
          // create and start thread if one doesn't exist
          while (executor.get() == null || ! executor.get().isInitialized()) {
              if (executor.compareAndSet(null, new ScheduledExecutor())) {
                  // initialize the executor that we 'won' setting
                  executor.get().initialize();
              }
          }
      }