prismicio-community / java-kit

Community maintained development kit for Prismic and the Java language
https://prismic.io
15 stars 38 forks source link

[enhancement] Replace custom Callback with Java 8 Completable Future #67

Open damienbeaufils opened 6 years ago

damienbeaufils commented 6 years ago

Hi Prismic team!

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.