Skip to content
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

FileDistributedLock - Use FileSystemWatcher to optimize wait #145

Open
madelson opened this issue Sep 10, 2022 · 0 comments
Open

FileDistributedLock - Use FileSystemWatcher to optimize wait #145

madelson opened this issue Sep 10, 2022 · 0 comments

Comments

@madelson
Copy link
Owner

madelson commented Sep 10, 2022

We shouldn't rely solely on this (we'll still have a busy wait loop with timeouts), but this can allow us to wake up immediately whenever the lock file is deleted. With this we can have longer back-off times as well.

Potentially this would be a way to build an efficient Semaphore too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant