Skip to content

Commit

Permalink
Add documentation for SyncIoBridge with examples and alternatives
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathy-bajo committed Sep 11, 2024
1 parent 1830b14 commit 234f9f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokio-util/src/io/sync_bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ use tokio::io::{
///
///
/// When the data doesn't fit into memory, the hashing library will usually
/// provide a hasher that you can repeatedly call `update` on to hash the data
/// provide a `hasher` that you can repeatedly call `update` on to hash the data
/// one chunk at the time. For example:
///
/// ```rust
Expand Down Expand Up @@ -201,7 +201,7 @@ use tokio::io::{
/// }
/// ```
/// Explanation: This example shows how to asynchronously read data into memory
/// and then parse it as JSON. By avoiding `SyncIoBridge`, the asynchronous runtime
/// and then parse it as `JSON`. By avoiding `SyncIoBridge`, the asynchronous runtime
/// remains unblocked, leading to better performance when working with asynchronous
/// I/O streams.
///
Expand Down

0 comments on commit 234f9f3

Please sign in to comment.