News for hackers. Stuff that matters.
Re:Java 21 Released by kaba0 on Tuesday September 19, 2023 @05:08PM (#37576696)
A Promise is not ordinary blocking code.

String res = someRestCall();

is.

Re:Java 21 Released by vips7L on Wednesday September 20, 2023 @05:11PM (#37590244)
I was agreeing with you. They introduced await because they know that

    var s = await someCall();
is way easier to reason about than:

    someCall().then(…)
Re:Java 21 Released by kaba0 on Thursday September 21, 2023 @02:01AM (#37593758)
Oh, I see! Sorry for the misunderstanding!