Skip to content

Instantly share code, notes, and snippets.

@UncleBill
Created September 21, 2016 01:45
Show Gist options
  • Save UncleBill/88732304ad152b837e35ce918193c73c to your computer and use it in GitHub Desktop.
Save UncleBill/88732304ad152b837e35ce918193c73c to your computer and use it in GitHub Desktop.
function queueHandle(srcarr, distarr, handler) {
if (srcarr.length) {
var m = members.shift();
util.reqUserInfo(m.member, function (userinfo) {
userinfo.IsLock = true;
distarr.push(userinfo);
queueHandle(srcarr, distarr, handler);
})
} else {
handler(selected);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment