Await should not be required - it should be more like...
--
regularWork(); //im waiting till this thing is done
driveHome();// not executed till thing one is done
background orderStatus = orderPizza();
turnOnXbox();
while(orderStatus == 'not ready') {
playXbox();
}
turnOffXbox();
eat();
Like I said - just my humble opinion that the code written would become more expressive.
Await should not be required - it should be more like...
--
regularWork(); //im waiting till this thing is done
driveHome();// not executed till thing one is done
background orderStatus = orderPizza();
turnOnXbox();
while(orderStatus == 'not ready') {
playXbox();
}
turnOffXbox();
eat();
--
Like I said - just my humble opinion that the code written would become more expressive.