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

Yep, in multithreaded langs you just want to use a ConcurrentMap or whatever the stdlib has for this. The write is very brief because you only write the promise and not eg keep a proper lock on the key until the result has arrived, so no need for a fancier datastructure.


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

Search: