Skip to content

Commit 1156814

Browse files
committed
Remove default ActivityClientCallsInterceptor.getActivityResultAsync
1 parent d47fc5e commit 1156814

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

temporal-sdk/src/main/java/io/temporal/common/interceptors/ActivityClientCallsInterceptor.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,8 @@ <R> GetActivityResultOutput<R> getActivityResult(GetActivityResultInput<R> input
113113
* @param <R> the expected result type
114114
* @return a future that completes with output wrapping the deserialized activity result
115115
*/
116-
default <R> CompletableFuture<GetActivityResultOutput<R>> getActivityResultAsync(
117-
GetActivityResultInput<R> input) {
118-
return CompletableFuture.supplyAsync(
119-
() -> {
120-
try {
121-
return getActivityResult(input);
122-
} catch (ActivityFailedException | TimeoutException e) {
123-
throw new java.util.concurrent.CompletionException(e);
124-
}
125-
});
126-
}
116+
<R> CompletableFuture<GetActivityResultOutput<R>> getActivityResultAsync(
117+
GetActivityResultInput<R> input);
127118

128119
@Experimental
129120
final class StartActivityInput {

0 commit comments

Comments
 (0)