0
 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.

2
  • means the callback argument is not a function. You have to define it like callback(value){} Commented May 27, 2023 at 13:19
  • @Ingenious_Hans can you please more clarify it Commented May 27, 2023 at 13:21

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.