Skip to content

Commit

Permalink
document internal Arc of reqwest::Client (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luro02 authored Apr 10, 2020
1 parent 7136810 commit c81eb4e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/async_impl/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ use crate::{IntoUrl, Method, Proxy, StatusCode, Url};
///
/// The `Client` holds a connection pool internally, so it is advised that
/// you create one and **reuse** it.
///
/// You do **not** have to wrap the `Client` it in an [`Rc`] or [`Arc`] to **reuse** it,
/// because it already uses an [`Arc`] internally.
///
/// [`Rc`]: std::rc::Rc
#[derive(Clone)]
pub struct Client {
inner: Arc<ClientRef>,
Expand Down

0 comments on commit c81eb4e

Please sign in to comment.