Since Java 8, we can use the new Future reactive API (with CompletableFuture), to execute asynchronous callbacks instead of using a custom Callback interface.
This PR replaces the usage of the custom Callback interface by the standard Java 8 Future API.
Hi Prismic team!
Since Java 8, we can use the new
Future
reactive API (withCompletableFuture
), to execute asynchronous callbacks instead of using a customCallback
interface. This PR replaces the usage of the customCallback
interface by the standard Java 8Future
API.