You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

598 B

Concurrency

https://quii.gitbook.io/learn-go-with-tests/go-fundamentals/concurrency

This was an interesting chapter. The high-level takeaways:

  • An anonymous function maintains access to the lexical scope in which they are defined
  • Go can help identify race conditions with race detector go test -race
  • Coordinating go routines can be accomplished with channels. Channels are a data structure that can both receive and send values. This allows cross go routine communication. Channels have a type, and you will commonly see structs passed around.