File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
example/com/linkedin/parseq/example/composite Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,14 @@ protected void doRunExample(final Engine engine) throws Exception
55
55
public void run ()
56
56
{
57
57
System .out .println (fanout .get ());
58
- printTracingResults (fanout );
59
58
}
60
59
});
61
60
62
- engine .run (seq (fanout , printResults ));
61
+ final Task <?> plan = seq (fanout , printResults );
62
+ engine .run (plan );
63
63
64
- printResults .await ();
64
+ plan .await ();
65
+ printTracingResults (plan );
65
66
}
66
67
67
68
private static class FanoutTask extends BaseTask <String >
@@ -81,7 +82,8 @@ public Promise<String> run(final Context ctx)
81
82
final Task <String > twoStage =
82
83
seq (par (fetchAndLog ("http://www.bing.com" ),
83
84
fetchAndLog ("http://www.yahoo.com" )),
84
- fetchAndLog ("http://www.google.com" ),
85
+ par (fetchAndLog ("http://www.google.com" ),
86
+ fetchAndLog ("https://duckduckgo.com/" )),
85
87
buildResult ());
86
88
ctx .run (twoStage );
87
89
return twoStage ;
You can’t perform that action at this time.
0 commit comments