Skip to content

Instantly share code, notes, and snippets.

@cfjedimaster
Last active August 29, 2015 14:07
Show Gist options
  • Save cfjedimaster/d5d775de060420f3b935 to your computer and use it in GitHub Desktop.
Save cfjedimaster/d5d775de060420f3b935 to your computer and use it in GitHub Desktop.
<cfscript>
data = querynew("id", "varchar", [{id:"a"}, {id:"b"}]);
function doTest(x,dir) {
var result = queryExecute("select * from data", {}, {dbtype:"query"});
return result;
};
cfthread(name="d1") {
d = doTest(2, "desc");
}
cfthread(name="d2") {
d2 = doTest(1, "asc");
}
cfthread(action="join",name="d1,d2");
writedump(cfthread);
z = doTest(1,"asc");
</cfscript>
<cfdump var="#variables#" showudfs="false" >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment