News for hackers. Stuff that matters.
Re:JEP proposed to target JDK 19: 425: Virtual Threads (Prev... by cogman10 on Monday May 02, 2022 @05:23PM (#31241135)
> The huge difference is that futures (and thus async/await) change the primary concurrency concept you think about into "wait until this value is available" rather than managing the locks and shared memory yourself.

Java has had Futures for a while (and pretty good ones since Java 8's addition of "CompletableFuture")

That being said, the biggest issue with Java Futures has not been the futures themselves, but rather the management of the ThreadPools for when you want to do IO in the futures.

As pron points out, virtual threads make that WAY better to work with.

There are no comments on this comment yet.