<100 subscribers
Share Dialog
Share Dialog
const main=async (n,m)=>{ await xls(); const promises = []; for (let i = n; i <= m; ++i) { pkey=worksheet.getCell(L${i+1}).value; promises.push(); } Promise.all(promises) .then(() => { console.log("[n->m] All done"); }) .catch((e) => { // Handle errors here }); //await }
const main=async (n,m)=>{ await xls(); const promises = []; for (let i = n; i <= m; ++i) { pkey=worksheet.getCell(L${i+1}).value; promises.push(); } Promise.all(promises) .then(() => { console.log("[n->m] All done"); }) .catch((e) => { // Handle errors here }); //await }
No comments yet