-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] core: Use AtomWatcher on macOS #1677
base: master
Are you sure you want to change the base?
Conversation
We probably don't want to do this at first. Just merge macOS support into master, so we can publish a new release. And test the new combo by enabling it in config file.
Temporary proof-of-concept. To be reimplemented as a macOS specific step just after producer. (captures would take the output of this new step)
const timeoutInMs = process.env.NODE_ENV === 'test' ? 1000 : 10000 | ||
this.macOSBuffer = new LocalEventBuffer(timeoutInMs, batches => { | ||
for (const batch of batches) { | ||
this.process(batch) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await?
this.watcher = await watcher.watchPath( | ||
this.syncPath, | ||
{ recursive: true }, | ||
this.process | ||
onEventBatch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we regenerate all captures with buffer? (I believe they were regenerated before reintroducing the buffer)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also is the buffer necessary or not?
8a36ecb
to
a9a996e
Compare
8d7d624
to
18fc74a
Compare
So we can: