Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Something like this?

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



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: