Documentation ¶
Overview ¶
Package idempotency provides a duplicate function call suppression mechanism. It is a lightly modified version of groupcache's singleflight package that does not forget keys until explicitly told to.
Index ¶
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
}
Group represents a class of work and forms a namespace in which units of work can be executed with duplicate suppression.
func (*Group) Forget ¶
Forget forgets a key, allowing the next call for the key to execute the function.
Click to show internal directories.
Click to hide internal directories.