4 ms·
Until JavaScript offers a robust concurrency abstraction, I don't see it completely replacing anything that is used for that purpose.
by amorphid 10y ago
Until JavaScript offers a robust concurrency abstraction, I don't see it completely replacing anything that is used for that purpose.
- voxic11 10y agoAsync/await and promises are quite good concurrency abstractions.
- brlewis 10y agoBased on the comment you're replying to I infer that you think Java offers a robust concurrency abstraction. I disagree. In moving to the single-threaded async style of JS concurrency, the hardest part for me has been to rid myself of the ugly habit I acquired from Java's threading model, i.e. asking myself at each line of code, what happens if my thread gets preempted here?