9 Likes
I’d like to use this file-watch feature as API from the application program but not build.zig
.
Do you have a plan?
I realize now you were talking about wanting to use OS file system watching features with the standard library, so my answer did not make sense. Sorry about that.
I think that it is difficult to provide an abstraction for file system watching without some kind of async API. Without it, there are too many variables to account for and platform differences, to the point that I think an application is better off writing their own application-specific abstraction, as you can see is done in the build runner.
So, I will revisit this when async’s fate is determined.
3 Likes
await fate()