Skip to main content

Crate origin_workspace_watch

Crate origin_workspace_watch 

Source
Expand description

The workspace watcher contract (WorkspaceWatcher) over notify (B4).

Event-driven local sync: a product like Gitbit does not have to poll a working tree. notify runs the platform mechanism (FSEvents, inotify, ReadDirectoryChanges) on its own thread and calls back; the callback converts each event to a WorkspaceChange and pushes it onto a broadcast channel, which the returned WatchHandle reads. Nothing here touches Tauri.

Structsยง

NotifyWorkspaceWatcher
Watches workspace roots with notify.