Last active
April 17, 2018 21:25
-
-
Save trycf/445d52d27b52e850f1775199a9e7d853 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
p = runAsync(); // empty future | |
p.complete(function(){ | |
sleep(1000) | |
return "done!" | |
}); | |
a = p.get(); | |
writeOutput(a()); // displays done! | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment