Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChanOnlyOne ¶
type ChanOnlyOne struct {
// contains filtered or unexported fields
}
func NewChanOnlyOne ¶
func NewChanOnlyOne() *ChanOnlyOne
func (*ChanOnlyOne) Compute ¶
func (c *ChanOnlyOne) Compute(k interface{}, fn func() (interface{}, error)) (interface{}, error)
type GetSetCache ¶
type GetSetCache struct {
// contains filtered or unexported fields
}
func (*GetSetCache) GetOrSet ¶
func (c *GetSetCache) GetOrSet(k interface{}, setFn SetFn) (v interface{}, err error)
type JitterFn ¶
func NewJitterFn ¶
Click to show internal directories.
Click to hide internal directories.