This is precisely why await was introduced in the first place. Promise and callback code was impossible to reason about.
String res = someRestCall();
is.
var s = await someCall();
someCall().then(…)
This is precisely why await was introduced in the first place. Promise and callback code was impossible to reason about.