Whatever message this page gives is out now! Go check it out!
future.thenCombine(other, function)| Parameter | Description |
|---|---|
| other | Required. The other Future to wait for. |
| function | Required. A function that accepts both results (this stage first, then other) and returns the combined value. |
<cfscript>
f1 = runAsync(function() { return 10; });
f2 = runAsync(function() { return 20; });
combined = f1.thenCombine(f2, function(x, y) { return x + y; });
writeOutput(combined.get()); // 30
</cfscript>