File tree Expand file tree Collapse file tree
core/src/main/java/io/temporal/samples/nexuscancellation/caller Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments