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

Aside from NodeJS-specific APIs, JS as a whole does not generally have any synchronous I/O, locks, threads etc. SharedArrayBuffer is probably the notable exception as it can be used to build synchronous APIs that implement that functionality if I’m not mistaken.

Unless by synchronous you meant single threaded in which case JS is indeed single threaded normally (unless you’re using things like Web Workers).



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

Search: