Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { // contains filtered or unexported fields }
func NewManager ¶
func NewManager() *Manager
type SharedCalls ¶
type SharedCalls interface {}
SharedCalls lets the concurrent calls with the same key to share the call result. When A and B concurrently request the same key, A and B will share the same result. Before the end of A request, B request comes, B will not execute, only wait for the result of A,
func NewSharedCalls ¶
func NewSharedCalls() SharedCalls
Click to show internal directories.
Click to hide internal directories.