Whatever message this page gives is out now! Go check it out!
future.thenComposeAsync(function)| Parameter | Description |
|---|---|
| function | Required. A function that takes the previous result and returns a Future. |
<cfscript>
future = runAsync(function() {
return 5; }).thenComposeAsync(function(x)
{ return runAsync(function() { return x * 2; }); }).thenApplyAsync(function(x) { return x + 10; });
writeOutput(future.get()); // 20
</cfscript>