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

CFRunLoop has no rustdoc #467

Open
jeff-hiner opened this issue Oct 14, 2021 · 0 comments
Open

CFRunLoop has no rustdoc #467

jeff-hiner opened this issue Oct 14, 2021 · 0 comments

Comments

@jeff-hiner
Copy link

I'm trying to figure out how to run a simple dynamic store change monitor in an async environment and cleanly stop it at will. It's apparent I need to spawn a thread and then invoke the servicing loop (which I assume will block until externally stopped). But then how do I stop it when I'm done? Since CFRunLoop is not Send, I can't clone and pass it to another thread to invoke stop, if that's even the right way to do this. Am I supposed to fetch the handle somehow via a fresh call? What's the difference between get_current and get_main? What is current_mode and what are the optional String contents supposed to look like? None of this is at all clear, and the rustdoc is completely empty.

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

No branches or pull requests

1 participant