debounce_fswatcher

package
v1.12.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebounceFSWatcherEvents

func DebounceFSWatcherEvents(
	ctx context.Context,
	watcher *fsnotify.Watcher,
	debounceDur time.Duration,
	filter func(event fsnotify.Event) (bool, error),
) ([]fsnotify.Event, error)

DebounceFSWatcherEvents debounces a fswatcher event stream. Waits for a "quiet period" before syncing. Returns when an event happened. If filter is set, events are checked against the filter. If filter returns false, the event will be ignored. If filter returns an err, it will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL