title: Get Callable value using CompletableFuture or Future Object
body: <p>Future.get() method is a blocking method, I just want my main method to not bother for f.get() and continue with its execution.</p>
  
  <p>How to get the callable returned value from Future or CompletableFuture without compromising with main thread execution and without using any loop for constantly checking using isDone()</p>
  
  <pre><code>        FutureTask&lt;String&gt; result = (FutureTask&lt;String&gt;) es.submit(new Helloo());
  //      CompletableFuture&lt;String&gt; r =  CompletableFuture.supplyAsync(()a -&gt; new Hello(), es);
          Future&lt;String&gt; r = es.submit(new Hello());
          es.execute(()-&gt;{System.out.println("hello");});
                  System.out.println("Main");
  
                  System.out.println("Main");
                  System.out.println("Main");
                  System.out.println("Main");
                  System.out.println(r.get());
  
                  System.out.println("Main");
                  System.out.println("Main");```
  </code></pre>