We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d00b2db commit 505c699Copy full SHA for 505c699
src/main/java/com/microsoft/graph/http/CoreHttpCallbackFutureWrapper.java
@@ -15,6 +15,7 @@
15
* Wraps the HTTP execution in a future, not public by intention
16
*/
17
class CoreHttpCallbackFutureWrapper implements Callback {
18
+ final CompletableFuture<Response> future = new CompletableFuture<>();
19
public CoreHttpCallbackFutureWrapper(@Nonnull final Call call) {
20
Objects.requireNonNull(call);
21
future.whenComplete((r, ex) -> {
@@ -23,7 +24,6 @@ public CoreHttpCallbackFutureWrapper(@Nonnull final Call call) {
23
24
}
25
});
26
- final CompletableFuture<Response> future = new CompletableFuture<>();
27
@Override
28
public void onFailure(Call arg0, IOException arg1) {
29
future.completeExceptionally(arg1);
0 commit comments