async.eachSeries gives error callback is not defined

28 views Asked by At
  async.eachSeries([1,2,3], async(item, callback) => {
      //await delay(6000);
      console.log(item);
      callback(null);
    }, function(done) {
      if(done == null){
      }
    });    


This happens when we add async with iterator, but we need async to call a await.

0

There are 0 answers