docs: private ThreadFactory createDaemonThreadFactory(final String nameFormat) {
      return new ThreadFactory() {
  
        private final AtomicInteger count = new AtomicInteger();
  
        @Override
        public Thread newThread(Runnable r) {
          Thread t = new Thread(r);
          t.setName(String.format(nameFormat, count.getAndIncrement()));
          t.setDaemon(true);
          return t;
        }
      };
    }