package singleflight

Import Path
	internal/singleflight (on and

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
type Result (struct) Result holds the results of Do, so they can be passed on a channel. Err error Shared bool Val interface{} func (*Group).DoChan(key string, fn func() (interface{}, error)) (<-chan Result, bool)