package singleflight
Import Path
internal/singleflight (on golang.org and go.dev)
Dependency Relation
imports one package, and imported by one package
Involved Source Files
d-> singleflight.go
Exported Type Names
type Group (struct)
Group represents a class of work and forms a namespace in
which units of work can be executed with duplicate suppression.
(*T) Do(key string, fn func() (interface{}, error)) (v interface{}, err error, shared bool)
(*T) DoChan(key string, fn func() (interface{}, error)) (<-chan Result, bool)
(*T) ForgetUnshared(key string) bool
![]() |
The pages are generated with Golds v0.1.6. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project and developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |