3 ms·
This was fixed in Go 1.23 https://go.dev/doc/go1.23#timer-changes https://go.dev/doc/go1.23#timer-changes They will get cleaned up.
by Philip-J-Fry 1y ago
This was fixed in Go 1.23 https://go.dev/doc/go1.23#timer-changes https://go.dev/doc/go1.23#timer-changes
They will get cleaned up.
- fweimer 1y agoI meant that the goroutine in the example keeps running. Often this contradicts the reason for having the timeout in the first place.
- Philip-J-Fry 1y agoI'm not sure what you mean? The examples all return from their function.