Many years ago, I took part in the development of a taxi-hailing mobile app that is still widely used today. I don’t know what kind of code they’re running now, but in those early days, the driver assignment code –if I remember it correctly– was similar in spirit to the grossly simplified example shown below: asyncfunctionassignDriver(rider, availableDrivers) { constdriverDistances=awaitcalculateDistances(rider.location, availableDrivers); letassignedDriver=null; for (letdriverofavail...