Whatever message this page gives is out now! Go check it out!
future.whenCompleteAsync(action)| Parameter | Description |
|---|---|
| action | Required. A function (value, error). On success, error is null. On failure, value is typically null and error is set. |
<cfscript>
future = runAsync(function() { return "success"; });
variables.test01Value = "";
variables.test01HasError = false;
completed = future.whenCompleteAsync(function(value, error) { variables.test01Value = value; variables.test01HasError = isNull(error) ? "false" : "true";});
completed.get();
writeOutput(variables.test01Value & ":" & variables.test01HasError); // success:false
</cfscript>