mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-21 00:47:11 +08:00
commit
024e4364f0
1 changed files with 1 additions and 1 deletions
|
|
@ -1527,7 +1527,7 @@ In summary, let’s be mindful that a goroutine is a resource like any other tha
|
|||
|
||||
One common mistake made by Go developers while working with channels is to make wrong assumptions about how select behaves with multiple channels.
|
||||
|
||||
For example, let's consider the following case (`disconnectCh` is a buffered channel):
|
||||
For example, let's consider the following case (`disconnectCh` is a unbuffered channel):
|
||||
|
||||
```go
|
||||
go func() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue