package watcher

import "github.com/gohugoio/hugo/watcher"

Index

Types

type Batcher

type Batcher struct {
	*fsnotify.Watcher

	Events chan []fsnotify.Event // Events are returned on this channel
	// contains filtered or unexported fields
}

Batcher batches file watch events in a given interval.

func New

func New(interval time.Duration) (*Batcher, error)

New creates and starts a Batcher with the given time interval.

func (*Batcher) Close

func (b *Batcher) Close()

Close stops the watching of the files.

Source Files

batcher.go

Version
v0.84.3
Published
Jun 29, 2021
Platform
linux/amd64
Imports
2 packages
Last checked
4 minutes ago

Tools for package owners.