UP | HOME

Table of Contents

Module: yalms.fswatch

Classes

Class: FsWatchOpts

Fields
  • root (string)
  • on_change (fun(path: string))
  • recursive? (boolean)
  • debounce_ms? (integer) default: 500

Class: FsWatch

Fields
  • _root (string)
  • _recursive (boolean)
  • _on_change (fun(path: string))
  • _watchers (table<string,) uv.uvfseventt>
  • _debounce_ms? (integer) default: 500
  • _dirs (table<string,) boolean>

Functions

debounce(fn, opts)

yalms.fs_watch.debounce

Parameters
  • fn (T)
  • opts ({ms?:number}, optional)
Returns
  • T

new(opts)

FsWatch:new

Parameters
  • opts (FsWatchOpts)