Commit Graph

6 Commits

Author SHA1 Message Date
Max Brunsfeld
b20f5e9139 Fully halt background scanner threads when dropping Worktree
* Rework fsevent API to expose a handle for halting the event stream

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-04-20 15:55:29 -07:00
Max Brunsfeld
47f0b94d0c Add an example executable for fsevents 2021-04-19 13:05:34 -07:00
Antonio Scandurra
e19a56c366 WIP 2021-04-16 19:54:46 +02:00
Max Brunsfeld
4878bf82ff Make EventStream interface more flexible
Take a callback instead of an mpsc Sender. The
run method blocks and invokes the callback for
each batch of events. The caller controls the
threading. The callback can return false to terminate
the event stream.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-04-15 17:38:52 -07:00
Max Brunsfeld
6d3dc85dad Tweak fsevent flags
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-04-15 16:46:34 -07:00
Max Brunsfeld
fbaab121f6 Add fsevent crate to workspace
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-04-15 16:29:55 -07:00