package
Version:
v0.1.6
Opens a new window with list of versions in this module.
Published: Feb 13, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package singleflight provides a duplicate function call suppression
mechanism.
func ComposeFlightLock(fn func() (interface{}, error), groups ...Group) (interface{}, error)
type Group interface {
Do(key string, fn func() (interface{}, error)) (interface{}, error)
LockDuring(fn func())
Lock()
Unlock()
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.