Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Promise.promisifyAll(tinder);
- var timer = 1000;
- var current = Promise.resolve();
- Promise.map(array, function (item) {
- current = current.then(function () {
- console.log(item.name);
- return tinder.like(item.id)
- }).then(function (responseAndBody) {
- process.stdout.write("call complete");
- return true;
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement