Whatever message this page gives is out now! Go check it out!
future.thenAcceptBothAsync(other, action)| Parameter | Description |
|---|---|
| other | Required. The other Future to wait for. |
| action | Required. A function (resultA, resultB) that performs an action (void return). |
<cfscript>
f1 = runAsync(function() { return "A"; });
f2 = runAsync(function() { return "B"; });
variables.result = "";
consumed = f1.thenAcceptBothAsync(f2, function(x, y) { variables.result = x & y;});
consumed.get();
writeOutput(variables.result); // AB
</cfscript>