Whatever message this page gives is out now! Go check it out!
future.thenCompose(function)| Parameter | Description |
|---|---|
| function | Required. A function that accepts this stage’s result and returns a Future. |
<cfscript>
future = runAsync(function() { return 5; });
composed = future.thenCompose(function(x) {
return runAsync(function() { return x * 10; });
});
writeOutput(composed.get()); // 50
</cfscript>