Slide 12
Slide 12 text
func main() {
chefs := []*chef{newChef("François", 2), newChef("Rose", 3)}
orders := []*order{
{"Blanquette de veau", 1, 1500 * time.Millisecond},
{"Soupe à l'oignon", 2, 850 * time.Millisecond},
// […]
}
startT := time.Now()
fire(orders, chefs)
fmt.Printf("all done in %s, closing the kitchen\n", time.Since(startT))
fmt.Println("logs:")
for t, entry := range logs {
fmt.Printf("%s: %s\n", t, entry)
}
}