Skip to content

Instantly share code, notes, and snippets.

@trycf
Last active April 17, 2018 21:25
Show Gist options
  • Save trycf/445d52d27b52e850f1775199a9e7d853 to your computer and use it in GitHub Desktop.
Save trycf/445d52d27b52e850f1775199a9e7d853 to your computer and use it in GitHub Desktop.
<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