Antonio Scandurra
ec3a4c4819
Always flush historical events in fsevent tests
2021-05-19 16:03:30 +02:00
Antonio Scandurra
164fbb6759
Increase timeout to 2s for fsevents tests
2021-05-19 15:01:11 +02:00
Max Brunsfeld
bdc932c9c1
Tweak durations in fsevent unit test to reduce odds of timeout
2021-04-29 12:52:28 -07:00
Max Brunsfeld and Antonio Scandurra
e29bddf714
Flush redundant fs events in worktree test
...
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
2021-04-28 12:42:39 -07:00
Max Brunsfeld
135226931f
Flush the fs event stream on construction
2021-04-27 21:43:41 -07:00
Max Brunsfeld and Nathan Sobo
14ac1c7bd0
Ignore 'historical' events from fs event stream
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-04-27 16:50:05 -07:00
Max Brunsfeld and Nathan Sobo
dffee18564
Fix race when fs events occur right after constructing worktree
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-04-27 16:38:47 -07:00
Max Brunsfeld and Nathan Sobo
b721209f29
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
a94e71c6fa
Add an example executable for fsevents
2021-04-19 13:05:34 -07:00
Antonio Scandurra
03ab1716e9
WIP
2021-04-16 19:54:46 +02:00
Max Brunsfeld and Nathan Sobo
7acbe1ef1d
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 and Nathan Sobo
e619fbca5a
Tweak fsevent flags
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-04-15 16:46:34 -07:00
Max Brunsfeld and Nathan Sobo
1c2692944b
Add fsevent crate to workspace
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-04-15 16:29:55 -07:00