Hacker News new | ask | show | jobs
by theThree 347 days ago
Something like this?

async function runTasks(tasks: Job[]) { for (let task of tasks) { try { await task() } catch (e) { } } }

1 comments

This only works if you have the full list of tasks beforehand.