Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/golang/mobile
/ validSender
Function
validSender
exp/sensor/sensor.go:122–130 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
120
}
121
122
func
validSender() error {
123
senderMu.Lock()
124
defer
senderMu.Unlock()
125
126
if
sender == nil {
127
return
errors.New(
"sensor: no senders to be notified; cannot enable the sensor"
)
128
}
129
return
nil
130
}
Callers
1
Enable
Function · 0.85
Calls
1
New
Method · 0.80
Tested by
no test coverage detected