Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debounce ¶
func Debounce(haltCtx context.Context, wait time.Duration) (chan<- interface{}, <-chan DebounceEvent)
Debounce returns two channels for (dirty) input and (clean) output.
func PassThrough ¶
func PassThrough(haltCtx context.Context) (chan<- interface{}, <-chan DebounceEvent)
PassThrough will pipe (dirty) input directly to (clean) output without debouncing.
Types ¶
type ArrayFlags ¶
type ArrayFlags []string
func (*ArrayFlags) Set ¶
func (r *ArrayFlags) Set(value string) error
func (*ArrayFlags) String ¶
func (r *ArrayFlags) String() string
type DebounceEvent ¶
type DebounceEvent struct { Counter int64 Data interface{} }
DebounceEvent contains the last event fired to the input channel
Click to show internal directories.
Click to hide internal directories.