mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
feat: async3 upgrade (#7639)
* feat: async3 upgrade WIP * fix: async.doWhilst * fix: async early exit * fix: psql doUntil * fix: psql again
This commit is contained in:
committed by
GitHub
parent
6cebc7f069
commit
4d9bc30d1f
@@ -45,8 +45,8 @@ exports.processSortedSet = function (setKey, process, options, callback) {
|
||||
var done = false;
|
||||
|
||||
async.whilst(
|
||||
function () {
|
||||
return !done;
|
||||
function (next) {
|
||||
next(null, !done);
|
||||
},
|
||||
function (next) {
|
||||
async.waterfall([
|
||||
@@ -99,8 +99,8 @@ exports.processArray = function (array, process, options, callback) {
|
||||
var done = false;
|
||||
|
||||
async.whilst(
|
||||
function () {
|
||||
return !done;
|
||||
function (next) {
|
||||
next(null, !done);
|
||||
},
|
||||
function (next) {
|
||||
var currentBatch = array.slice(start, start + batch);
|
||||
|
||||
Reference in New Issue
Block a user