Whatever message this page gives is out now! Go check it out!
future.orTimeout(timeout)| Parameter | Description |
|---|---|
| timeout | Required. Timeout in milliseconds (numeric). |
<cfscript>
f1 = runAsync(function() {
sleep(1000); return "slow";}).orTimeout(500);
f2 = runAsync(function() { return "fast";});
anyFuture = asyncAnyOf([f1, f2]);
writeOutput(anyFuture.get()); // fast>
</cfscript>