MCPcopy Create free account
hub / github.com/MMadmer/EpicAssetsNotifyBot / stopTimer

Function stopTimer

internal/discord/runtime.go:1561–1571  ·  view source on GitHub ↗
(timer *time.Timer)

Source from the content-addressed store, hash-verified

1559}
1560
1561func stopTimer(timer *time.Timer) {
1562 if timer == nil {
1563 return
1564 }
1565 if !timer.Stop() {
1566 select {
1567 case <-timer.C:
1568 default:
1569 }
1570 }
1571}
1572
1573func isContextDone(err error) bool {
1574 return errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded)

Callers 1

runFlushLoopMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected