Skip to content

Commit cf8ca1d

Browse files
authored
use async-lock instead of async-mutex (#8)
1 parent a93ca6d commit cf8ca1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ tokio03 = ["tokio03-crate"]
2121
[dependencies]
2222
async-channel = "^1.5"
2323
async-executor = "^1.4"
24-
async-mutex = "^1.4"
24+
async-lock = "^2.5"
2525
blocking = "^1.0"
2626
futures-lite = "^1.0"
2727
num_cpus = "^1.13"

src/threading.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::Task;
22
use async_channel::{Receiver, Sender};
3-
use async_mutex::Mutex;
3+
use async_lock::Mutex;
44
use futures_lite::future;
55
use once_cell::sync::OnceCell;
66
use std::{io, thread};

0 commit comments

Comments
 (0)