We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mohuishou 的 技术博客, 关注云原生, Go, K8s, Docker, 微服务等技术
https://lailin.xyz/post/go-training-week5-singleflight.html
The text was updated successfully, but these errors were encountered:
用双重 defer 来避免死锁, 不是特别理解,能解释下吗
Sorry, something went wrong.
如果只有一个 defer 不区分传入的 fn panic 和 runtime panic 是可能出现死锁的,例子和相关讨论可以看这个 issue
fn
golang/go#33519
singleflight只适用于缓存击穿
No branches or pull requests
Go并发编程(十二) Singleflight - Mohuishou
mohuishou 的 技术博客, 关注云原生, Go, K8s, Docker, 微服务等技术
https://lailin.xyz/post/go-training-week5-singleflight.html
The text was updated successfully, but these errors were encountered: