Merge branch 'szTheory-patch-1'

This commit is contained in:
Mark McGranaghan 2020-08-23 07:47:43 -07:00
commit 25cf6d9e69

View File

@ -25,7 +25,7 @@ func main() {
}() }()
// Here's the `select` implementing a timeout. // Here's the `select` implementing a timeout.
// `res := <-c1` awaits the result and `<-Time.After` // `res := <-c1` awaits the result and `<-time.After`
// awaits a value to be sent after the timeout of // awaits a value to be sent after the timeout of
// 1s. Since `select` proceeds with the first // 1s. Since `select` proceeds with the first
// receive that's ready, we'll take the timeout case // receive that's ready, we'll take the timeout case