MCPcopy
hub / github.com/yusing/godoxy / resetIdleTimer

Method resetIdleTimer

internal/idlewatcher/watcher.go:542–545  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

540}
541
542func (w *Watcher) resetIdleTimer() {
543 w.idleTicker.Reset(w.cfg.IdleTimeout)
544 w.lastReset.Store(time.Now())
545}
546
547func (w *Watcher) expires() time.Time {
548 if !w.running() || w.cfg.IdleTimeout <= 0 {

Callers 5

onReadMethod · 0.95
wakeFromStreamMethod · 0.95
watchUntilDestroyMethod · 0.95
wakeFromHTTPMethod · 0.95
NewWatcherFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected