You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goroutine, still running in the background, continues its infinite loop.
However, since the main code is no longer receiving from the channel, the goroutine's actions are effectively ignored.
The Go runtime will eventually clean up the goroutine when the program exits.
https://github.com/kevchn/go-concurrency-patterns/blob/9493f7e9f5db056eae29c2faa231ea54c5514545/1-8-timeout-select.go#L29
The text was updated successfully, but these errors were encountered: