MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / Unset

Method Unset

libs/timer/throttle_timer.go:59–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func (t *ThrottleTimer) Unset() {
60 t.mtx.Lock()
61 defer t.mtx.Unlock()
62 t.isSet = false
63 t.timer.Stop()
64}
65
66// For ease of .Stop()'ing services before .Start()'ing them,
67// we ignore .Stop()'s on nil ThrottleTimers

Callers 1

queueRequestMethod · 0.80

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected