How to terminate a worker that is in communication with subscription::channel
#1881
Unanswered
wangxiaochuTHU
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, firstly I'd like to thank for your working on this performant Rust UI library.
Currently I'm considering a simple app to show data from backend. Following the instruction of
some_worker()
in subscription::channel, I think I've managed to make such a tuple of(tx, rx)
work.But my question is how to terminate the worker and quit its inner async loop?
I tried to use a kill signal to break the inner async loop, but the compiler complains about the return type. How to fix it?
code
Beta Was this translation helpful? Give feedback.
All reactions