The code models starting a background operation via a goroutine and a result channel. After a recent refactor, the program started printing an unexpected result even when the context is already canceled by the time it waits for the result.
stdout.context.Context and synchronization order through an unbuffered channel.main.go.go run .
stdout.1.24go run .result channelClick a line and write what it prints. Explanation is optional.