Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardGochannel internals hchan sudogSingle-choice MCQ

An unbuffered channel send completes and the receiver gets the value. In the fast path where a receiver is already waiting, how does the value move, according to the runtime's chan.go?

ch := make(chan int) go func() { ch <- 42 }() v := <-ch