MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / SetWatchdogTimeout

Method SetWatchdogTimeout

internal/loop/loop.go:585–589  ·  view source on GitHub ↗

SetWatchdogTimeout sets the watchdog timeout duration. Setting timeout to 0 disables the watchdog.

(timeout time.Duration)

Source from the content-addressed store, hash-verified

583// SetWatchdogTimeout sets the watchdog timeout duration.
584// Setting timeout to 0 disables the watchdog.
585func (l *Loop) SetWatchdogTimeout(timeout time.Duration) {
586 l.mu.Lock()
587 defer l.mu.Unlock()
588 l.watchdogTimeout = timeout
589}
590
591// WatchdogTimeout returns the current watchdog timeout duration.
592func (l *Loop) WatchdogTimeout() time.Duration {

Calls

no outgoing calls