MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / Wait

Method Wait

rate/rate.go:233–235  ·  view source on GitHub ↗

Wait is shorthand for WaitN(ctx, 1).

(ctx context.Context)

Source from the content-addressed store, hash-verified

231
232// Wait is shorthand for WaitN(ctx, 1).
233func (lim *Limiter) Wait(ctx context.Context) (err error) {
234 return lim.WaitN(ctx, 1)
235}
236
237// WaitN blocks until lim permits n events to happen.
238// It returns an error if n exceeds the Limiter's burst size, the Context is

Callers 5

NewJSLimitProviderFunction · 0.80
NewJSRouterFunction · 0.80
DialContextMethod · 0.80
NewJSFilterFunction · 0.80
TestSimultaneousRequestsFunction · 0.80

Calls 1

WaitNMethod · 0.95

Tested by 1

TestSimultaneousRequestsFunction · 0.64