Documentation
¶
Overview ¶
Package debounce provides a single-writer trailing-edge debouncer used by the watcher subsystem to coalesce bursty filesystem events into one reload trigger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Debouncer ¶
type Debouncer struct {
// contains filtered or unexported fields
}
Debouncer collects calls to Trigger inside a sliding window and fires the callback exactly once with all merged reasons after the window elapses.
It is safe for concurrent Trigger calls and survives stop/restart.
Click to show internal directories.
Click to hide internal directories.