Documentation ¶ Index ¶ type Group func NewGroup() *Group func (g *Group) Do(key string, fn func() (any, error)) (any, bool, error) func (g *Group) DoChan(key string, fn func() (any, error)) <-chan Result func (g *Group) Forget(key string) type Result Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Group ¶ type Group struct { // contains filtered or unexported fields } func NewGroup ¶ func NewGroup() *Group func (*Group) Do ¶ func (g *Group) Do(key string, fn func() (any, error)) (any, bool, error) func (*Group) DoChan ¶ func (g *Group) DoChan(key string, fn func() (any, error)) <-chan Result func (*Group) Forget ¶ func (g *Group) Forget(key string) type Result ¶ type Result struct { Val any Err error Shared bool } Source Files ¶ View all Source files singleflight.go Click to show internal directories. Click to hide internal directories.