Closed etneil closed 6 years ago
This is now as enforced as it can be.
run_taxi still needs to instantiate a Dispatcher, a Pool, and a Queue, and to mediate their intercommunication. Otherwise, swapping out a Pool or a Queue requires editing the other two objects, which ruins the modularity.
and Dispatch talks to Pool, to complete our Taxi analogy.