Y
Hacker News
new
|
ask
|
show
|
jobs
by
kaba0
998 days ago
A Promise is not ordinary blocking code.
String res = someRestCall();
is.
1 comments
vips7L
997 days ago
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(…)
link
kaba0
997 days ago
Oh, I see! Sorry for the misunderstanding!
link