Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SingleFlight ¶
type SingleFlight interface { Do(key string, fn func() (interface{}, error)) (interface{}, error) DoEx(key string, fn func() (interface{}, error)) (interface{}, bool, error) }
func NewSingleFlight ¶
func NewSingleFlight() SingleFlight
type SpinLock ¶
type SpinLock interface { Lock() UnLock() }
func NewSpinLock ¶
func NewSpinLock() SpinLock
Click to show internal directories.
Click to hide internal directories.