News for hackers. Stuff that matters.
Re:How JavaScript works: Event loop and the rise of Async pr... by Chris_Newton on Saturday October 14, 2017 @10:23AM (#15472274)
Full interfaces for managing threads are often unnecessarily flexible and complicated for the relatively simple use cases where JS programmers typically need some sort of promise, though. Even if it’s still OS level threads implementing the behaviour behind the scenes, if you’re only spawning a new thread to determine a value in some potentially time-consuming way and then return that value when it’s available, the concept of a function that runs asynchronously and returns a future value is quite neat and intuitive.

There are no comments on this comment yet.