Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b24d3b5 commit 883aed5Copy full SHA for 883aed5
rate/rate.go
@@ -52,6 +52,8 @@ func Every(interval time.Duration) Limit {
52
// or its associated context.Context is canceled.
53
//
54
// The methods AllowN, ReserveN, and WaitN consume n tokens.
55
+//
56
+// Limiter is safe for simultaneous use by multiple goroutines.
57
type Limiter struct {
58
mu sync.Mutex
59
limit Limit
0 commit comments