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

Reuseable WatchManager #33

Open
neko-kai opened this issue Apr 13, 2013 · 3 comments
Open

Reuseable WatchManager #33

neko-kai opened this issue Apr 13, 2013 · 3 comments

Comments

@neko-kai
Copy link

It would've been quite convenient if WatchManager could be reused after closeManager in the same way as http-conduit's Manager.

@UnkindPartition
Copy link
Member

Can you explain why this is useful? Maybe give a code snippet that illustrates your use case?

@neko-kai
Copy link
Author

@feuerbach
I have a file chooser widget specifying a directory to watch for, right now I'm forced to keep associated WatchManager inside an IORef, and destroy-and-rebuild it each time user changes directory. This can get uglier when multiple threads are involved.

@gregwebs
Copy link
Member

I think exbb2 wants to cancel all current watches without closing the manager

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

4 participants