Documentation ¶
Overview ¶
Package cherrySync cherrySync file from https://github.com/beego/beego/blob/develop/core/utils/safemap.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limit ¶ added in v1.1.22
type Limit struct {
// contains filtered or unexported fields
}
Limit controls the concurrent requests.
func NewLimit ¶ added in v1.1.22
NewLimit creates a Limit that can borrow n elements from it concurrently.
func (Limit) Borrow ¶ added in v1.1.22
func (l Limit) Borrow()
Borrow borrows an element from Limit in blocking mode.
Click to show internal directories.
Click to hide internal directories.