Documentation
¶
Overview ¶
Package debounce coalesces bursts of calls into one.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
type Func struct {
// contains filtered or unexported fields
}
Func runs fn once, delay after the last Trigger: a burst of triggers (e.g. deleting a user's hundreds of nodes) costs one run, not one per trigger. With a maximum wait (WithMaxWait) it runs no later than that after the burst's first trigger: a steady stream of triggers runs it now and then rather than never.
Click to show internal directories.
Click to hide internal directories.