animo93 / JRest

A Java Rest Client developed on the lines of HttpUrlConnection
MIT License
0 stars 6 forks source link

Enhancement to modify and test the callMeLater method #42

Closed animo93 closed 3 weeks ago

animo93 commented 3 weeks ago

The current callMeLater method isn't working as expected because it uses Future which doesn't guarantee the task completion .

So , below mentioned steps needs to be completed :-

  1. Update the callMeLater function of AsnycTask class to use CompletableFuture instead .
  2. The callback methods might also need to be updated to support the above.
  3. All the test cases needs to be updated to test the callMeLater feature as well