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

If mapFunc reads state it also writes, you should be thinking about async. If it doesn't, the problem isn't all that interesting. Though I did admit in the parent comment that Go's approach is reasonable.

It should be noted that similar code is possible in JS with WebWorkers. Async/Await is more for same-thread concurrency.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: