0
我有一个元素数组var arr = [1, 2, 3, 4, 5, 6, 7, 8]
。我想要的是采取每一个元素,做一些事情,并采取其他。我不希望这些东西并行。节点Q - 使用Q的手柄阵列
例如:
arr.forEach(function(d){
//send 'd' through HTTP
//if send is success wait 1000 resend the same.
});
我怎样才能做到这一点与Q
?