Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SleepContext ¶
SleepContext sleeps for the provided duration unless the context is cancelled first. An error is returned if the context is cancelled.
Types ¶
type Debouncer ¶
type Debouncer struct {
// contains filtered or unexported fields
}
Debouncer is a name taken from JavaScript Reactive programming. It allows firing many events in succession but only triggering one output event.
func NewDebouncer ¶
NewDebouncer creates a new debouncer that ensures at least [delay] time period has occurred before triggering an output event.
Click to show internal directories.
Click to hide internal directories.