Open dvyukov opened 9 years ago
Under the 11506's scenario, the sender goroutine will also participate in receiving the value (or an-already-running goroutine), so who gets to run once the parked receiver gets unparked?
Let's say in your proposed workflow,
goroutine 1 sent. goroutine 2 unparked.
Now I think 1 and 2 are both possible to get dequeue the value. At this moment, how schedule picks which to run?