SetWatchdogTimeout sets the watchdog timeout duration. Setting timeout to 0 disables the watchdog.
(timeout time.Duration)
| 583 | // SetWatchdogTimeout sets the watchdog timeout duration. |
| 584 | // Setting timeout to 0 disables the watchdog. |
| 585 | func (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. |
| 592 | func (l *Loop) WatchdogTimeout() time.Duration { |
no outgoing calls