O'Reilly logo
  • Tianqi Ma thinks this is interesting:

This has the effect of allowing the main goroutine to unblock and continue execution.

From

Cover of Learning Go Programming

Note

通过加入defer 实现main函数的无锁执行