Skip to content

Commit c1aaaea

Browse files
Clarify
1 parent 20c2e50 commit c1aaaea

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

core/src/main/java/io/temporal/samples/nexuscancellation/caller/HelloCallerWorkflowImpl.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ public String hello(String message) {
6161
// Trigger cancellation of all uncompleted nexus operations invocations within the cancellation
6262
// scope
6363
scope.cancel();
64-
// Optionally, wait for all nexus operations to receive a cancellation request before
64+
// Wait for all nexus operations to receive a cancellation request before
6565
// proceeding.
6666
//
6767
// Note: Once the workflow completes any pending cancellation requests are dropped by the
68-
// server.
68+
// server. In general, it is a good practice to wait for all cancellation requests to be
69+
// processed before completing the workflow.
6970
for (Promise<NexusService.HelloOutput> promise : results) {
7071
try {
7172
promise.get();

0 commit comments

Comments
 (0)