Forked from cfjedimaster/gist:d5d775de060420f3b935
Last active
August 29, 2015 14:07
-
-
Save twelverobots/b1a0f51f3a90662ac718 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
data = querynew("id", "varchar", [{id:"a"}, {id:"b"}]); | |
result = []; | |
cfthread(name="d1") { | |
arrayAppend(result, queryExecute("select * from data", {}, {dbtype:"query"})); | |
} | |
cfthread(name="d2") { | |
arrayAppend(result, queryExecute("select * from data", {}, {dbtype:"query"})); | |
} | |
cfthread(action="join",name="d1,d2"); | |
sleep(2000); | |
writedump(cfthread); | |
arrayAppend(result, queryExecute("select * from data", {}, {dbtype:"query"})); | |
</cfscript> | |
<cfdump var="#variables#" showudfs="false" > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment