MCPcopy Create free account
hub / github.com/QuantumNous/new-api / TryLock

Method TryLock

controller/user.go:1263–1270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1261}
1262
1263func (l *topUpTryLock) TryLock() bool {
1264 select {
1265 case l.ch <- struct{}{}:
1266 return true
1267 default:
1268 return false
1269 }
1270}
1271
1272func (l *topUpTryLock) Unlock() {
1273 select {

Callers 3

SetupLoggerFunction · 0.80
TopUpFunction · 0.80
FixAbilityFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected