MCPcopy Create free account
hub / github.com/desertbit/timer / delTimer

Function delTimer

timers.go:41–46  ·  view source on GitHub ↗

Delete timer t from the heap. It returns true if t was removed, false if t wasn't even there. Do not need to update the timer routine: if it wakes up early, no big deal.

(t *Timer)

Source from the content-addressed store, hash-verified

39// It returns true if t was removed, false if t wasn't even there.
40// Do not need to update the timer routine: if it wakes up early, no big deal.
41func delTimer(t *Timer) (b bool) {
42 mutex.Lock()
43 b = delTimerLocked(t)
44 mutex.Unlock()
45 return
46}
47
48// Delete timer t from the heap.
49// It returns true if t was removed, false if t wasn't even there.

Callers 1

StopMethod · 0.85

Calls 1

delTimerLockedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…