Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
TryCF Gist
requests = [
maxThreads = 5;
parallel = true;
tick = getTickCount();
arrayEach(requests, function(value, index) {
var httpResult="";
cfhttp(url=value.url, result="httpResult");
value.result = httpResult.fileContent;
}, parallel, maxThreads);
writeOutput("<p>Took: #getTickCount()-tick# with parallel: #parallel#, maxThreads: #maxThreads#</p>");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment