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