Skip to content

clone() a good idea? #2156

Closed Answered by Tockra
Tockra asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, no answere needed anymore.
The implementations seems to derive clone, so it calls clone() on the inner Arc and I have a cloned reference to the original client.
So there is no problem by using multiple clients which was created by a clone():
https://docs.rs/reqwest/latest/src/reqwest/async_impl/client.rs.html#68

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Tockra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant