Skip to content

Instantly share code, notes, and snippets.

@IbrahimTanyalcin
Created October 25, 2017 03:16
Show Gist options
  • Save IbrahimTanyalcin/b2d8fca0dfe5b03df1f30cba0a8547f7 to your computer and use it in GitHub Desktop.
Save IbrahimTanyalcin/b2d8fca0dfe5b03df1f30cba0a8547f7 to your computer and use it in GitHub Desktop.
taskq_test2.js
!function(){
function test(testItem){
console.log("I'll wait for all and then execute the function that is passed to me!");
testItem(5);
}
test._taskqId = "loadend";
test._taskqWaitFor = [0,1];//not necessery if 'loadend' is present above
taskq.push(test);
}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment