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.



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

Search: