Skip to content

Commit

Permalink
Add note about spawn_blocking to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ramosbugs committed Feb 28, 2024
1 parent a7ea5c9 commit 1fc8188
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
//!
//! This library offers a flexible HTTP client interface with two modes:
//! * **Synchronous (blocking)**
//!
//! NOTE: Be careful not to use a blocking HTTP client within `async` Rust code, which may panic
//! or cause other issues. The
//! [`tokio::task::spawn_blocking`](https://docs.rs/tokio/latest/tokio/task/fn.spawn_blocking.html)
//! function may be useful in this situation.
//! * **Asynchronous**
//!
//! ## Security Warning
Expand Down

0 comments on commit 1fc8188

Please sign in to comment.