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

Nodejs doesn't have synchronization primitives, just because you use Promise and assign it to variable "mutex" doesn't make it any more real


What do you think is the real thing? It's also a value in a memory cell.


Yup :)

https://github.com/golang/go/blob/master/src/sync/mutex.go

You can easily see what Go does here. It's not magic.




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

Search: