asDeferred

Converts this CompletionStage to an instance of Deferred.

The CompletableFuture that corresponds to this CompletionStage (see CompletionStage.toCompletableFuture) is cancelled when the resulting deferred is cancelled.