Skip to content

Commit

Permalink
Update async.md
Browse files Browse the repository at this point in the history
`use` `RwLock`
  • Loading branch information
skaunov authored Jan 21, 2025
1 parent f6ae220 commit c1fbba6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/tokio/tutorial/async.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ details are given in the implementation of the `poll()` method.
```rust
# use std::future::Future;
# use std::pin::Pin;
# use std::sync::mpsc;
# use std::sync::{mpsc, RwLock};
use std::sync::{Arc, Mutex};

struct Task {
Expand Down Expand Up @@ -524,7 +524,7 @@ channel. Next, we implement receiving and executing the tasks in the
# use std::future::Future;
# use std::ops::Deref;
# use std::pin::Pin;
# use std::sync::{Arc, Mutex};
# use std::sync::{Arc, Mutex, RwLock};
# use std::task::{Context, Poll};
# struct MiniTokio {
# scheduled: mpsc::Receiver<Arc<Task>>,
Expand Down

0 comments on commit c1fbba6

Please sign in to comment.