-
Notifications
You must be signed in to change notification settings - Fork 123
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
How to run listener in a thread and stop it? #133
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to run the listener in a thread and be able to cancel it some time later?
I tried to use tokio join handle's
abort()
method but doesn't work.I am on Mac and in the source code I saw that native APIs were used instead of rust loop, I guess that's why
abort()
won't work.Is there any way to do that?
The text was updated successfully, but these errors were encountered: