title: how to wait for all requests to complete with Spring 5 WebClient?
body: <p>I have a simple Java program that sends multiple requests with Spring WebClient. Each returns a mono, and I am using response.subscribe() to check the result.</p>
  
  <p>However, my main thread of execution finishes before all requests are processed, unless I add a long Thread.sleep().</p>
  
  <p>With CompletableFutures you can use: CompletableFuture.allOf(futures).join();</p>
  
  <p>Is there a way to wait for all Mono's to complete ?</p>