Whatever message this page gives is out now! Go check it out!
future.exceptionallyCompose(function)| Parameter | Description |
|---|---|
| function | Required. A function that takes the exception and returns a Future. |
<cfscript>
future = runAsync(function() { throw("error"); });
sleep(200);
recovered = future.exceptionallyCompose(function(error) { return runAsync(function() { return "recovered_async"; });});
writeOutput(recovered.get()); // recovered_async
</cfscript>