News for hackers. Stuff that matters.
Re:Ruby's Proposed STM by formerly_proven on Friday October 30, 2020 @09:00AM (#24941743)
Whether async or threads are preferable depends a lot on context and often the answer will be "both".

E.g. GUI code -> async, because you must do everything on the UI thread. Heavy lifting in a GUI app -> threads. Traditionally you'd do this with a huge mess of callbacks, but these days it's reasonably easy to just write the GUI portion using async and have background computations run in threads signal their results through futures into the async code, which makes everything so much easier.

There are no comments on this comment yet.