Hacker News new | ask | show | jobs
by kaba0 998 days ago
A Promise is not ordinary blocking code.

String res = someRestCall();

is.

1 comments

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(…)
Oh, I see! Sorry for the misunderstanding!