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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址