You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: customizable directory refresher (#45)
This PR is intended to allow users to define the filesystem operations they want to be notified about (for example deletion).
loader: make AddUpdateCallback thread-safe and don't block signaling (#……41)
This commit makes the Loader.AddUpdateCallback() method thread-safe and
ensures that signaling callbacks never blocks. Previously, if signaling
a callback blocked it would deadlock the Loader.
loader: use atomic.Value to store snapshot (#34)
* loader: use atomic.Value to store snapshot
This eliminates the need to use a mutex.
```
benchmark old ns/op new ns/op delta
BenchmarkSnapsot-12 15.1 2.46 -83.71%
BenchmarkSnapsot_Parallel-12 36.6 0.51 -98.60%
```
* loader: fix spelling