debounce_fswatcher

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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,
) ([]fsnotify.Event, error)

DebounceFSWatcherEvents debounces a fswatcher event stream. Waits for a "quiet period" before syncing. Returns when an event happened.

Types

This section is empty.

Jump to

Keyboard shortcuts

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