Static methods

@:noExprstaticinit(loop:Loop):Result<FsPoll>

Allocates and initializes an FS polling handle.

The handle should be cleaned up with eval.luv.Handle.close when no longer needed.

@:noExprstaticstart(this:FsPoll, path:NativeString, ?interval:Int, callback:(result:Result<{previous:FileStat, current:FileStat}>) ‑> Void):Void

Starts the handle and polls the given path for changes.

The default value of interval is 2000 (milliseconds).

@:noExprstaticstop(this:FsPoll):Result<NoData>

Stops the handle.