code: @SuppressWarnings("resource")
    public static synchronized void initialize(AsyncHttpClientConfig cfg) {
      if (!_client.compareAndSet(null, new AsyncHttpClient(cfg))) {
        throw new RuntimeException("async http client concurrently initialized");
      }
    }
docs: Initializes HttpClient with custom configuration.
  @param cfg client configuration
  @see AsyncHttpClientConfig