notifyonce

package module
v0.0.0-...-f12c774 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 4 Imported by: 0

README

notifyonce

Only get notified once per fsnotify event

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Event sends an event only once
	Event = make(chan *fsnotify.Event) // sends an event only once
	// Timeout waits the specified duration for a second event before sending
	// the original event once. You may need to fine tune this value.
	Timeout = time.Second
)

Functions

func HandleEvent

func HandleEvent(event fsnotify.Event)

HandleEvent handles a received fsnotify.Event reference

Types

This section is empty.

Jump to

Keyboard shortcuts

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