package
Version:
v1.3.3
Opens a new window with list of versions in this module.
Published: Jul 20, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Group 是 singleflight 的主数据结构,管理不同 key 的请求(call)。
func (g *Group) Do(key interface{}, fn func() (interface{}, error)) (interface{}, error)
Do 保证key所对应的fn函数同一时刻只会执行一次
Source Files
¶
Click to show internal directories.
Click to hide internal directories.