https://github.com/shgopher/singeleflight-demo
【请求合并】golang.org/x/sync/singleflight 的一个 使用 demo,singleflight是很多goroutine同时只有一个goroutine获取到数据,其它的就不用去获取了,然后自动就能获取到相同的数据。
https://github.com/shgopher/singeleflight-demo
Last synced: 6 months ago
JSON representation
【请求合并】golang.org/x/sync/singleflight 的一个 使用 demo,singleflight是很多goroutine同时只有一个goroutine获取到数据,其它的就不用去获取了,然后自动就能获取到相同的数据。
- Host: GitHub
- URL: https://github.com/shgopher/singeleflight-demo
- Owner: shgopher
- License: mit
- Created: 2021-01-20T11:09:49.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-20T11:33:26.000Z (almost 5 years ago)
- Last Synced: 2023-03-05T23:31:34.129Z (almost 3 years ago)
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# singeleFlight-demo
golang.org/x/sync/singleflight 的一个 使用 demo,singleflight是很多goroutine同时只有一个goroutine获取到数据,其它的就不用去获取了,然后自动就能获取到相同的数据。