-
As in the topic - I need some guidance on sharing the client between multiple async tasks. Is it safe to call Do the individual tasks have to keep their clones around? The way I see it, I would
|
Beta Was this translation helpful? Give feedback.
Answered by
stevelr
Aug 30, 2022
Replies: 1 comment
-
Clients are lightweight objects and you can clone as many as you need, and let rust drop them whenever you don't need them. Clients and Subscriptions share the same tcp connection created by the call to connect(). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jaskij
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clients are lightweight objects and you can clone as many as you need, and let rust drop them whenever you don't need them.
Clients and Subscriptions share the same tcp connection created by the call to connect().