awesome-everything RU

single-flight

RU: single-flight

A concurrency pattern, canonically implemented in Go's golang.org/x/sync/singleflight package, that suppresses duplicate in-flight calls sharing the same key: only the first goroutine executes the function and all concurrent callers share its result. Prevents cache stampedes without a distributed lock.

shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?