The order in which defer statements are executed is predictable, unlike goroutines.
Reply on news.ycombinator.com