FSWatch::Backend
Instance methods
Begin watching path (a file or a directory). With recursive
set at construction, backends extend the watch to the tree —
natively where the API allows (inotify: add a watch per
directory on create; kqueue: rescan on directory NOTE_WRITE;
poll: the tree walk is the watch).
run
The observation loop — runs INSIDE a fiber spawned by the core; returns when stopped. Must never block the scheduler thread: waits go through the event loop (evented IO / sleep / select).
stop
Request teardown; must be callable from any fiber. The run loop may take a bounded moment (stop-check cadence) to actually exit.