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