Class CoreAsyncResponse<T>


@Internal public final class CoreAsyncResponse<T> extends Object
Associates a CompletableFuture with a cancellation task.

Lets the Async API tell the Reactive API how to cancel a request in a protocol-agnostic way, so the default implementation of the Reactive API works with both Classic and Protostellar.

A CompletableFuture alone is not sufficient, because a completion stage does not propagate cancellation upstream. If the Async API methods were to return only a CompletableFuture, they could not reliably attach the cancellation logic required by the Reactive API methods (which by default are thin wrappers over the Async APIs).