We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 845afa3 commit 4a8633cCopy full SHA for 4a8633c
src/main/java/com/uber/cadence/samples/hello/HelloChild.java
@@ -52,7 +52,8 @@ public String getGreeting(String name) {
52
// Workflows are stateful. So a new stub must be created for each new child.
53
GreetingChild child = Workflow.newChildWorkflowStub(GreetingChild.class);
54
55
- // This is a blocking call that returns only after the child has completed.
+ // This is a non blocking call that returns immediately.
56
+ // Use child.composeGreeting("Hello", name) to call synchronously.
57
Promise<String> greeting = Async.function(child::composeGreeting, "Hello", name);
58
// Do something else here.
59
return greeting.get(); // blocks waiting for the child to complete.
0 commit comments