3 ms·
Something like this? async function runTasks(tasks: Job[]) { for (let task of tasks) { try { await task() } catch (e) {
by theThree 1y ago
Something like this?
async function runTasks(tasks: Job[]) {
for (let task of tasks) {
try {
await task()
} catch (e) {
}
}
}
- foxygen 1y agoThis only works if you have the full list of tasks beforehand.