documentation icon indicating copy to clipboard operation
documentation copied to clipboard

[Features] Async Activity Completion is missing in Java

Open rachfop opened this issue 2 years ago • 1 comments

Async Activity Completion is missing is Java


You can provide a code snippet in the comments or a link to the line numbers of the samples-repo. Once added, I'll update the app-dev page with the new code snippet.

rachfop avatar Aug 18 '22 20:08 rachfop

Calling .doNotCompleteOnReturn: https://github.com/temporalio/samples-java/blob/708324ffd1599df4d593b411e9516424be096033/src/main/java/io/temporal/samples/hello/HelloAsyncActivityCompletion.java#L143

Actually completing the activity asynchronously: https://github.com/temporalio/samples-java/blob/708324ffd1599df4d593b411e9516424be096033/src/main/java/io/temporal/samples/hello/HelloAsyncActivityCompletion.java#L155

This example is not that great, because here the same class calls .doNotCompleteOnReturn and completes execution, it's not the best demonstration. But the code snippets are there.

Spikhalskiy avatar Sep 12 '22 23:09 Spikhalskiy