Skip to content

Commit 1373dbe

Browse files
authored
Merge pull request #25 from uber/mfateev-updated-comment
Update HelloChild comment
2 parents 845afa3 + 4a8633c commit 1373dbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/uber/cadence/samples/hello/HelloChild.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public String getGreeting(String name) {
5252
// Workflows are stateful. So a new stub must be created for each new child.
5353
GreetingChild child = Workflow.newChildWorkflowStub(GreetingChild.class);
5454

55-
// This is a blocking call that returns only after the child has completed.
55+
// This is a non blocking call that returns immediately.
56+
// Use child.composeGreeting("Hello", name) to call synchronously.
5657
Promise<String> greeting = Async.function(child::composeGreeting, "Hello", name);
5758
// Do something else here.
5859
return greeting.get(); // blocks waiting for the child to complete.

0 commit comments

Comments
 (0)