MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / wait

Method wait

pkg/auth/rights/cache.go:82–89  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

80}
81
82func (c *cachedRes) wait(ctx context.Context) error {
83 select {
84 case <-ctx.Done():
85 return ctx.Err()
86 case <-c.waitChan:
87 return nil
88 }
89}
90
91type cachedAuthInfoRes struct {
92 *cachedRes

Callers 15

AuthInfoMethod · 0.80
ApplicationRightsMethod · 0.80
ClientRightsMethod · 0.80
GatewayRightsMethod · 0.80
OrganizationRightsMethod · 0.80
UserRightsMethod · 0.80
profile.spec.jsFile · 0.80
import.spec.jsFile · 0.80
unclaim.spec.jsFile · 0.80
qr-scan.spec.jsFile · 0.80
claiming.spec.jsFile · 0.80
assign.spec.jsFile · 0.80

Calls 2

DoneMethod · 0.80
ErrMethod · 0.45

Tested by

no test coverage detected