DP
Size: a a a
DP
RC
RC
с
RC
RC
RS
RC
с
с
RS
RLock
пока fetch не завершится, а это сеть, она сверхмедленнаяRS
с
DP
RS
ВС
AS
RS
RS
1. goroutine 1 calls Get, cache miss, enters fetchGroup.Do, is interrupted
2. goroutine 2 calls Get, cache miss, but is interrupted before hitting the fetchGroup.Do
3. goroutine 1 is re-scheduled, finishes its fetchGroup.Do and yields the result
4. goroutine 2 is re-schedule, hits fetchGroup.Do, which now doesn't have an inflight request