Excellent tutorial on/discussion of futures and how they work … I learned a lot! Quick question: When the syntax (in goEatPizza) changed from ‘await’ to ‘.then’, Android Studio gave a warning about the async keyword, but the code ran OK. With the async keyword removed warning went away and code still ran. I noticed VS didn’t give a warning. I gather ‘async’ is not needed with .then, but doesn’t cause an error?
Shouldn't order and get pizza ordered not be combined? And I think it is more clear when the waiting for the pizza is done in another thread / class / isolate? Instead of the same class. Also the first synchronous example makes no sense because order and getpizzaordered should be the same?