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